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.
'function1': overloaded function differs only by return type from 'function2'
Remarks
The overloaded functions have different return types but the same parameter list. Each overloaded function must have a distinct formal parameter list.
Example
The following example generates C2556:
// C2556.cpp
// compile with: /c
int func();
double func(); // C2556
int func(int i); // OK parameter lists differ