Wrapping C++ class with virtual destructor
Gregor Mückl
gregormueckl at gmx.de
Wed Feb 17 22:53:05 UTC 2021
Hi!
How do I wrap an existing C++ class with a virtual destructor in
D? Take, for example, this C++ class:
class Base {
public:
virtual ~Base();
virtual void foo() = 0;
}
What does the equivalent extern(C++) declaration in D look like?
I don't care about calling the destructor. My only concern is
matching the vtable. Changing the C++ code is not an option in my
case.
More information about the Digitalmars-d-learn
mailing list