Compiler Error C3208
Collapse the table of content
Expand the table of content
This documentation is archived and is not being maintained.

Compiler Error C3208

Error Message

'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>();
© 2016 Microsoft