How to disable/hide constructor when using factory method?
JN
666total at wp.pl
Thu Jan 24 12:58:15 UTC 2019
On Thursday, 24 January 2019 at 12:52:47 UTC, Arafel wrote:
> You are declaring the constructor, but not defining it, i.e.
> you're telling the compiler that it's in some other compilation
> unit.
>
> The compiler won't complain, but the linker will.
>
> If you replace:
>
>> [...]
>
> with:
>
>> [...]
>
> it should work.
>
> A.
>
> On 1/24/19 1:48 PM, JN wrote:
>> [...]
Doh. Of course. I feel so dumb. I just had it at @disable
this();, then replaced @disable with private without thinking to
add {}
More information about the Digitalmars-d-learn
mailing list