Compiler Error C3207
Visual Studio 2015
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 C3207.
function' : invalid template argument for 'arg', class template expected
A template function is defined as taking a template template argument. However, a template type argument was passed.
The following sample generates C3207:
// C3207.cpp
template <template <class T> class TT>
void f(){}
template <class T>
struct S
{
};
void f1()
{
f<S<int> >(); // C3207
// try the following line instead
// f<S>();
}
Show: