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 C2801

'operator operator' must be a nonstatic member

The following operators can be overloaded only as nonstatic members:

Possible causes

Example

operator[]();            // error, not a member
class A
{
   static operator->();  // error, static
   operator()();         // OK
};