What is the wrong with my C++ interfacing

Ferhat Kurtulmuş aferust at gmail.com
Sun Mar 15 20:25:37 UTC 2020


On Sunday, 15 March 2020 at 20:21:57 UTC, drug wrote:
> 15.03.2020 22:39, Ferhat Kurtulmuş пишет:
>> 

> What is the D version of `createSizeIntWH`? In C++ it returns a 
> pointer but in D version it returns an instance.

extern(C++){
     cv.Size_!int createSizeInt();
     cv.Size_!int createSizeIntWH(int w, int h);
     void deleteSizeInt(ref cv.Size_!int sz);
}



More information about the Digitalmars-d-learn mailing list