此浏览器不再受支持。
请升级到 Microsoft Edge 以使用最新的功能、安全更新和技术支持。
备注
访问此页面需要授权。 可以尝试登录或更改目录。
访问此页面需要授权。 可以尝试更改目录。
“identifier”:函数模板的显式实例化需要返回类型
函数模板的显式实例化需要显式指定返回类型。 隐式返回类型指定不起作用。
下面的示例生成 C2909:
// C2909.cpp // compile with: /c template<class T> int f(T); template f<int>(int); // C2909 template int f<int>(int); // OK
此页面是否有帮助?