How to check at compile time if Default Constructor for a class exists?

Bottled Gin via Digitalmars-d digitalmars-d at puremagic.com
Fri Jan 1 07:25:32 PST 2016


Hello Folks

When I try using TypeInfo_Class.defaultConstructor during compile 
time, I get:

> typeid(Foo).defaultConstructor is not yet implemented at 
> compile time

Is there any other way to find out at compile time if a default 
constructor exists for a given class?

Regards
- Puneet


More information about the Digitalmars-d mailing list