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 C3258

'class' : operator overloading is not implemented for managed classes

Operator overloading is not allowed with managed classes.

The following sample generates C3258:

#using <mscorlib.dll>

__gc class A {
   public:
   int i;
   A *operator=(const int _i) {   // C3258
      i = _i; 
      return(this);
   }
};

void main() { 
   A *a = new A; 
}