Compiler Error C2917

'name' : invalid template-parameter

A template parameter list containes an identifier that was not a template parameter. 

The following code will generate this error:

template<class T> class Vector { void sort(); };

template<class T> void Vector<C>::sort() // error: 'C'
{
}