Replies: 1 comment
-
Bindings of global variables/const's currently is not supported. Easiest workaround would be to wrap access to such values via function, like: #ifdef MY_PYTHON_BINDINGS
constexpr complex_t get_I() { return I; }
#endif |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My C++ code:
My Python code:
Result:
How to expose a
constexpr
(orstatic const
) to Python?Beta Was this translation helpful? Give feedback.
All reactions