NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Compiler Error C2556

'identifier' : overloaded functions only differ by return type

The overloaded functions have different return types but the same parameter list. Each overloaded function must have a distinct formal parameter list. The following sample generates C2556:

class C {
   int    func();   // first declaratioin
   double   func();   // C2556   
   int func(int i);   // ok, parameter lists differ
};

void main() {
}