Arno
2010-01-31 20:40:16 UTC
Hello,
compiling this snippet:
enum E {
e1
};
bool operator<=( E, E ) {
return false;
}
int main()
{
E e;
e<=e;
return 0;
}
produces
1>c:\users\schoedl\documents\visual studio 2008\projects
\test6\test6\test6.cpp(17) : error C2593: 'operator <=' is ambiguous
1> c:\users\schoedl\documents\visual studio 2008\projects
\test6\test6\test6.cpp(10): could be 'bool operator <=(E,E)'
1> or 'built-in C++ operator<=(E, E)'
1> while trying to match the argument list '(E, E)'
comp.lang.c++.moderated seems to think it is a compiler bug. Is it?
Arno
compiling this snippet:
enum E {
e1
};
bool operator<=( E, E ) {
return false;
}
int main()
{
E e;
e<=e;
return 0;
}
produces
1>c:\users\schoedl\documents\visual studio 2008\projects
\test6\test6\test6.cpp(17) : error C2593: 'operator <=' is ambiguous
1> c:\users\schoedl\documents\visual studio 2008\projects
\test6\test6\test6.cpp(10): could be 'bool operator <=(E,E)'
1> or 'built-in C++ operator<=(E, E)'
1> while trying to match the argument list '(E, E)'
comp.lang.c++.moderated seems to think it is a compiler bug. Is it?
Arno