This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/4781: template problem with namespace and operator overloading.
- From: aoliva at gcc dot gnu dot org
- To: elflord at panix dot com, gcc-bugs at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 25 Nov 2001 18:40:46 -0000
- Subject: Re: c++/4781: template problem with namespace and operator overloading.
[Get raw message]
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