Compiler Error C3200
'template' : invalid template argument for template parameter 'parameter', expected a class template
You passed an invalid argument to a class template. The class template expects template as a parameter. In the following example, calling Y<int, int> aY
will generate C3200. The first parameter needs to be a template, such as Y<X, int> aY
.
// C3200.cpp
template<typename T>
class X
{
};
template<template<typename U> class T1, typename T2>
class Y
{
};
int main()
{
Y<int, int> y; // C3200
}
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for