C++ Interop -- Two Questions

Mike Parker via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Sep 9 02:55:18 PDT 2015


Given a C++ class that looks like this:

class Foo {
    static void Initialize(const SomeObject&);

    virtual void func1();
}

The documentation at [1] doesn't say anything about how to handle 
static member functions like Initialize, nor do I see anything 
about references. I assume I can declare any reference function 
parameters using D's ref, but I have no idea how to declare 
static methods. My questions:

1) Am I right about ref?

2) Do I need to create a wrapper function in C or C++ for static 
member functions?


More information about the Digitalmars-d-learn mailing list