Cannot instantiate a std.container.Array of a class with a init() function member.

Francesco Cattoglio via Digitalmars-d digitalmars-d at puremagic.com
Mon Mar 2 07:46:27 PST 2015


Taken from
http://forum.dlang.org/thread/gjrbmskictrbcyeduqgu@forum.dlang.org

trying to instantiate an Array!MyClass fails with a rather 
obscure error message if the MyClass has a member function "void 
init()":

http://dpaste.dzfl.pl/16d202b7124d

Is this a std library bug, or should this be considered a mistake 
on the library user side to name a member function "init"?


More information about the Digitalmars-d mailing list