Compiler Error C3208

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Compiler Error C3208.

function' : template parameter list for class template 'class' does not match template parameter list for template template parameter 'parameter'

A template template parameter does not have the same number of template parameters as the provided class template.

The following sample generates C3208:

// C3208.cpp  
template <template <class T> class TT >  
int f();  
  
template <class T1, class T2>  
struct S;  
  
template <class T1>  
struct R;  
  
int i = f<S>();   // C3208  
// try the following line instead  
// int i = f<R>();  

Show: