Templates - Numeric Types only

Kevin s.keptiker at web.de
Thu Aug 6 16:56:17 PDT 2009


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



More information about the Digitalmars-d mailing list