Edit

Share via


Compiler Error C3202

'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
{
};