Kevin wrote:
> Hi,
> simple Question:
> Is it possible to allow just numeric types in templates?
> For example to create a Vector Class like this:
>
> class Vector(T:"numeric" = float, int size = 4)
>
> Thanks,
> Kevin
import std.traits;
class Vector(T, int size = 4) if (isNumeric!T)
{
...
}
Andrei