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 C2824

return type for 'operator new' must be 'void *'

With nonbased pointers, overloads of operator new must return void *. The following sample generates C2824:

class   A {
   A* operator new(size_t i, char *m);   // C2824
   // use the code below to resolve the error
   // void* operator new(size_t i, char *m);
};

void main() {
}