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 C2815

'operator delete' : first formal parameter must be 'void *', but 'param' was used

Any user-defined operator delete must take a first formal parameter of type void *.

The following sample demonstrates an instance of this error:

// compile cl /c 
class CMyClass {
public:
   void mf1(int *a);
   void operator delete(CMyClass *);  // 2815 : First formal must be 'void *'
};