array depth template
Saaa
empty at needmail.com
Thu Jun 11 21:04:52 PDT 2009
>
> template BaseType(T: T[]) { const BaseType = BaseType!(T); }
> template BaseType(T) {const BaseType = T; }
..
else static if( std2.traits.isNumeric!( BaseType!(T) ) )
{
..
ddata\ddata.d(192): template instance isNumeric!(int) does not match any
template declaration
ddata\ddata.d(192): Error: expression isNumeric!(int) is not constant or
does not evaluate to a bool
What am I doing wrong?
More information about the Digitalmars-d-learn
mailing list