binary 'operator' : no operator defined which takes a right-hand operand of type 'type' (or there is no acceptable conversion)
Define a constructor or conversion operator to make the required conversion. If you’ve encountered this error on code which compiled with an earlier version of Visual C++, please read Technote: Improved Conformance to ANSI C++ for more information.
The following is an example of this error:
class C
{
public:
C(); // no constructor with an int argument
} c;
class D
{
public:
D( int );
D();
} d;
void main()
{
c = 10; // error
d = 10; // OK
}