This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
PR c++/8279: ostream_iterator problems
- From: Joe Buck <jbuck at synopsys dot com>
- To: gcc at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Date: Fri, 18 Oct 2002 17:23:32 -0700 (PDT)
- Subject: PR c++/8279: ostream_iterator problems
Can someone take a look to see what's going wrong for PR 8279, which makes
ostream_iterator<T> unusable if T is a pair? It looks like a frontend
bug, but conceivably this could be a libstdc++-v3 bug (though I doubt it).
The code works if the ostream_iterator is replaced, basically, by the
expansion of the copy(v.begin(), v.end(), ostream_iterator(...)), and
the code also works on gcc 2.95.x ("using" directives take care of the
namespace issues).