Multiple inheritance with Embind? #18206
Unanswered
donalffons
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
The topic of multiple inheritance with Embind has been discussed in #6382 and I understand that this is currently not supported. However, I was wondering if there is a workaround or if there is a chance that this sort of feature might be supported at some point...
Here is an example of my use case:
I would like to be able to call all functions above with an instance of type
Derived
. One naive workaround I have come up with, is toreinterpret_cast
the underlying pointer in my Embind binding definitions.That works...
...but unfortunately I'm losing type safety and error messages. And I guess that this is probably also hurting runtime performance?!
If anyone else has ideas on this issue, I would greatly appreciate if you would share them.
Beta Was this translation helpful? Give feedback.
All reactions