Compiler Error C3202
TOC
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 C3202

Error Message

'arg name' : invalid default argument for template parameter 'parameter', expected a class template

You passed an invalid default argument for a template parameter.

The following sample generates C3202:

// C3202.cpp
template<typename T>
class X
{
};

class Z
{
};

template<template<typename U> class T1 = Z, typename T2> // C3202
class Y
{
};
Show:
© 2016 Microsoft