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 C2271

'operator' : new/delete cannot have formal list modifiers

The operator (new or delete) is declared with a memory-model specifier.

For example, the following sample generates C2271:

void* operator new(size_t) /*const*/   // Global operator new
{
   return 0;
}
struct X { 
/*static*/ void* operator new(size_t) const; 
};
void * X::operator new(size_t) const   // static member operator new
{
   return 0;
}

void main() {
}