c++/8827: operator<< within namespace shadows all operator<<'s in global namespace
bangerth@dealii.org
bangerth@dealii.org
Thu Dec 5 11:57:00 GMT 2002
Synopsis: operator<< within namespace shadows all operator<<'s in global namespace
State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Thu Dec 5 11:57:05 2002
State-Changed-Why:
This is not a bug, but how Koenig lookup works. If there
is nothing in the present namespace, then we look into
the namespaces of the arguments of the operator, which
triggers the message.
There are a number of similar reports in the database.
If you know which operator you want to call, then qualify
it with the name of the namespace.
Regards
Wolfgang
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8827
More information about the Gcc-bugs
mailing list