assert() vs. enforce(), invariant() vs. ... ?
Jacob Carlborg
doob at me.com
Sat Aug 31 12:45:12 PDT 2013
On 2013-08-31 20:28, Andrej Mitrovic wrote:
> Hmm... I hope this can actually work when there are multiple ctors,
> how would the compiler know which of the ctors dg should be assigned
> to?
Apparently you cannot use "auto" when having an overloaded symbol, so
just use an explicit type:
T delegate (Args) dg = &result.__ctor;
dg(args);
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list