Skip to content

Latest commit

 

History

History
31 lines (26 loc) · 796 Bytes

compiler-error-c3201.md

File metadata and controls

31 lines (26 loc) · 796 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Error C3201
Compiler Error C3201
11/04/2016
C3201
C3201
ec19cd64-1789-40a3-b2db-dff2852b9d98

Compiler Error C3201

the template parameter list for class template 'template' does not match the template parameter list for template parameter 'template'

You passed a class template in the argument to a class template that does not take a template parameter, or you passed a mismatched number of template arguments for the default template argument.

// C3201.cpp
template<typename T1, typename T2>
class X1
{
};

template<template<typename T> class U = X1>   // C3201
class X2
{
};

template<template<typename T, typename V> class U = X1>   // OK
class X3
{
};