how to disable all default N-argument constructors for a struct?

Moritz Maxeiner via Digitalmars-d digitalmars-d at puremagic.com
Mon Jul 3 18:22:38 PDT 2017


On Tuesday, 4 July 2017 at 01:02:16 UTC, Era Scarecrow wrote:
>  As soon as a class defines at least one constructor, the 
> implicit default constructor is not avaliable anymore. - TDPL 
> pg. 182

This is also true for structs, but one can't infer that from a 
rule about classes.


More information about the Digitalmars-d mailing list