Struct default constructor - need some kind of solution for C++ interop

Ethan Watson via Digitalmars-d digitalmars-d at puremagic.com
Tue Sep 6 07:49:20 PDT 2016


On Tuesday, 6 September 2016 at 13:44:37 UTC, Ethan Watson wrote:
> Suggestions?

Forgot to mention in OP that I had tried this( void* pArg = null 
); to no avail:

mutex.d(19): Deprecation: constructor mutex.Mutex.this all 
parameters have default arguments, but structs cannot have 
default constructors.

It's deprecated and the constructor doesn't get called. So no 
egregious sploits for me.


More information about the Digitalmars-d mailing list