This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: libstdc++/8529: wontcompile copy() of map to ostream_iterator
- From: bangerth at dealii dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, j dot tevessen at gmx dot net, nobody at gcc dot gnu dot org
- Date: 11 Nov 2002 17:50:54 -0000
- Subject: Re: libstdc++/8529: wontcompile copy() of map to ostream_iterator
- Reply-to: bangerth at dealii dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, j dot tevessen at gmx dot net, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
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