public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/4781: template problem with namespace and operator overloading.
@ 2001-11-20 18:06 aoliva
0 siblings, 0 replies; 2+ messages in thread
From: aoliva @ 2001-11-20 18:06 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c++/4781; it has been noted by GNATS.
From: aoliva@gcc.gnu.org
To: elflord@panix.com, gcc-bugs@gcc.gnu.org, gcc-gnats@gcc.gnu.org,
gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org
Cc:
Subject: Re: c++/4781: template problem with namespace and operator overloading.
Date: 25 Nov 2001 18:40:46 -0000
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: c++/4781: template problem with namespace and operator overloading.
@ 2001-11-20 18:06 aoliva
0 siblings, 0 replies; 2+ messages in thread
From: aoliva @ 2001-11-20 18:06 UTC (permalink / raw)
To: elflord, gcc-bugs, gcc-gnats, gcc-prs, nobody
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-11-25 18:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-20 18:06 c++/4781: template problem with namespace and operator overloading aoliva
2001-11-20 18:06 aoliva
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).