Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
'function': looks like a function definition, but there is no parameter list; skipping apparent body
A function definition is missing its argument list.
Example
The following example generates 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;
}