templated static array

Namespace rswhite4 at googlemail.com
Mon Oct 15 08:35:39 PDT 2012


But bar([1, 2, 3]); not. The compiler does not realize that [1, 
2, 3] means a static array in this context.
You have to write bar(cast(int[3]) [1, 2, 3]); but I think the 
compiler have to recognize this on it's own.


More information about the Digitalmars-d-learn mailing list