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 C2577

'destructor' : destructor cannot return a value

A destructor cannot return a value of void or any other type. Remove the return statement from the destructor definition.

The following sample generates C2577:

class A {
   public:
      A() {
}
      ~A() { 
         return 0;   // C2577, remove to resolve the error
      }
};

void main() {
}