static opCall 'hidden' by incompatible constructors
Nick Treleaven via Digitalmars-d
digitalmars-d at puremagic.com
Thu Jul 17 10:44:00 PDT 2014
On 17/07/2014 18:11, Nick Treleaven wrote:
> opcall.d(24): Error: struct opcall.U static opCall is hidden by
> constructors and can never be called
> opcall.d(24): Please use a factory method instead, or replace all
> constructors with static opCall.
I should mention that std.typecons.Unique needs other constructors as
well, so I can't use static opCall alone. Maybe using a factory method
would work, but I think it would either be inconsistent to mix factory
method + other ctors or cumbersome to only use a factory method.
More information about the Digitalmars-d
mailing list