c++/4781: template problem with namespace and operator overloading.

aoliva@gcc.gnu.org aoliva@gcc.gnu.org
Thu Nov 15 12:58:00 GMT 2001


Synopsis: template problem with namespace and operator overloading.

State-Changed-From-To: analyzed->closed
State-Changed-By: aoliva
State-Changed-When: Sun Nov 25 10:40:45 2001
State-Changed-Why:
    Not a bug.  operator< is searched in ::std, because that's where std::less is defined, and ::R, due to Koenig lookup.  The global namespace is not to be searched, so your operator< is not found.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4781&database=gcc



More information about the Gcc-bugs mailing list