Creating template libraries from C++/Boost template libraries

Chris Wright via Digitalmars-d digitalmars-d at puremagic.com
Sun Mar 13 09:31:49 PDT 2016


On Sun, 13 Mar 2016 12:11:12 +0000, Lyle Moffitt wrote:
> is it
> possible to specialize this template for a C++API version of D's Object

That idea would work. You probably need to define your own base class as 
extern(C++), though. On the plus side, that lets you add whatever you 
want to the interface you expose to C++.

> I'd imagine this would have the same
> limitations as using `void*` for generic programming in C, but it would
> at least allow the retention of class information thought Object's
> inheritance tree.

Should do.


More information about the Digitalmars-d mailing list