libstdc++/8529: wontcompile copy() of map to ostream_iterator
bangerth@dealii.org
bangerth@dealii.org
Mon Nov 11 09:50:00 GMT 2002
Synopsis: wontcompile copy() of map to ostream_iterator
State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Mon Nov 11 09:50:53 2002
State-Changed-Why:
Your op<< is in the global namespace, but at the place where
it is used (inside std::copy and the ostream_iterator), only
operators in namespace std are looked up because both operands
are in namespace std. There are several other instances
of this bug/feature in the database.
You can work around the problem by putting the op<< into
namespace std.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8529
More information about the Gcc-bugs
mailing list