此浏览器不再受支持。
请升级到 Microsoft Edge 以使用最新的功能、安全更新和技术支持。
“type”: 模板参数不能是包含“auto”的类型
指定的模板参数类型不能使用 auto 关键字。
下面的示例会产生 C3539。
// C3539.cpp // Compile with /Zc:auto template<class T> class C{}; int main() { C<auto> c; // C3539 return 0; }
auto 关键字