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 C2677

binary 'operator' : no global operator defined which takes type 'type' (or there is no acceptable conversion)

To use the operator, you must overload it for the specified type or define a conversion to a type for which the operator is defined. If you encounter this error while porting code from Visual C++ 2.0 or earlier, see Technote: Improved Conformance to ANSI C++.

Example

class C
{
   public:
   C();
} c;

class D
{
   public:
   D();
   operator int();
} d;

void main()
{
   1 >> c;   // error
   1 >> d;   // OK, operator int() defined
}