Compiler Error C3203
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

Compiler Error C3203

'type' : class template invalid as template argument for template parameter 'param', expected a real type

You passed an invalid argument to a class template. The class template expects a type as a parameter.

The following sample generates C3203:

// C3203.cpp
template <class T> struct S1

template <class T>
// template <template <class> class T>
class C1

typedef C1<S1> MyC1;   // C3203 (works with commented line above)
typedef C1<S1<int> > MyC12;   // ok

int main()
© 2015 Microsoft