Using private constructor with std.experimental.allocater:make

Lass Safin via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun May 1 11:27:51 PDT 2016


On Sunday, 1 May 2016 at 11:17:27 UTC, earthfront wrote:
> Hello!
> [...]
>  class A
>    { int b; private this(int a){b=a;} }
> [...]

I don't think classes are supposed to be able to have a private 
constructor...


More information about the Digitalmars-d-learn mailing list