SWIG and Virtual Inheritance

Todd Hartman <[email protected]> Mon, 17 Jul 2023 09:36:34 -0500
Newsgroups gmane.comp.programming.swig
Message-ID <CAB-ut8Ck4g_Gn2dNGEjM+2pC-hsbogjSrP0YKGdb91q8efFXJw@mail.gmail.com>
Does SWIG (any version) support virtual inheritance in C++?
e.g.

class B : public virtual A {

};


The documentation for 4.1
<https://swig.org/Doc4.1/SWIGDocumentation.html#Introduction_nn10> doesn't
explicitly say. SWIG itself complains about my use of this keyword.
What would happen if I lied to SWIG about this and just removed "virtual"
from the header file I feed it? Are there obvious problems that inevitably
result? What would SWIG do with the knowledge that some classes use this
kind of inheritance? Does it actually care?


todd.

_______________________________________________
Swig-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/swig-user