Compiler Error C2942

'class' : template-class-id redefined as a formal argument of a function

There was an attempt to use the templated class as a formal argument. You cannot pass an argument directly to the constructor of a templated class.