Replies: 1 comment
-
Are you sure? It might work for an instance of your type, but I would guess that you then can't access it directly on the class itself. (Or if you set something there, it doesn't correctly propagate to the C++-managed value). |
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
Uh oh!
There was an error while loading. Please reload this page.
-
I notice the ...
static
counterparts for the variousm.def
...()
methods. But why do they need to exist?If, for example, nanobind added an overload to
def_rw()
for static members instead of definingdef_rw_static()
:...it would Just Work and the binding would not need to be updated if whether or not a member was static later changed?
Beta Was this translation helpful? Give feedback.
All reactions