It's because you've used "class" as a type not "typename". "class" cannot hold numerical types.
Replace line 4 with this line:
|
template <typename AnyDataType>
|
You should only use "class" instead of "typename" if you are passing classes.
Last edited on
You really should get a default constructor...
Anyways. Look carefully at how you use your constructor. Are you missing something? Maybe another set of these? <>
-Albatross