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 C2631

'class' : destructors not allowed a return type

A destructor is incorrectly declared with a return type.

Example

class C
{
   int ~C();   // error, returns int
   void ~C();  // error, returns void
   ~C();       // OK
};