Skip to content
Discussion options

You must be logged in to vote

nanobind (like Python) has no concept of const-ness, and will not have such a feature in the future. So this ultimately isn't a nanobind question. You could have a read-only base class. Or you could export implementations to separate regular and view classes without inheritance relationship via the curiously recurring template pattern (CRTP).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@StudioWEngineers
Comment options

Answer selected by StudioWEngineers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants