In the context of the above code, this question makes sense, but the code I posted was the distillation of the problem from a much larger application. That application is CORBA-based, and the specific problem that prompted my question arose from the mapping of CORBA IDL enumerations to C++...
Can anyone explain what is happening here? I am trying to create overloaded relational operators for class member enums. VC6.0 and gcc 3.3.4 compile the code fine. VC7.0 and 7.1 complain that the overloaded operator function is ambiguous. The following code illustrates the problem:
class A
{...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.