“function”:类似于函数定义,但没有参数列表;跳过明显的正文
函数定义缺少其参数列表。
示例
以下示例生成 C2470:
// C2470.cpp
// compile with: /c
template <typename T>
class C
{
int func();
};
template <typename T>
int C<T>::func // C2470
// Use the following line to resolve the error:
// int C<T>::func()
{
return 0;
}