Compiler Error C2964

invalid expression as template parameter

One or more of the template parameter expressions was not valid as a template parameter. Check the template declaration for parameter types.

The following is an example of this error:

class C {};
template<class T, C c> class MyClass {};
template MyStack< int, 4 >;  // error