[char*] How to bind a function accept a char* argument? #268
-
The code below comes up with a compile error.
|
Beta Was this translation helpful? Give feedback.
Answered by
wjakob
Aug 18, 2023
Replies: 1 comment 1 reply
-
It's not supported. The nanobind Python bindings will call your function with a |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
huangweiwu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's not supported. The nanobind Python bindings will call your function with a
const char *
from an internal buffer that you are not allowed to write to.