PR 4051
Alexandre Oliva
aoliva@redhat.com
Wed Aug 22 03:52:00 GMT 2001
On Aug 17, 2001, Craig Rodrigues <rodrigc@mediaone.net> wrote:
> Does anyone know why gcc 3.x complains about this?
Hmm... Here's a theory:
Since ostream_iterator is defined in namespace std, the context in
which the expression that outputs a pair to the ostream is that
namespace, where a number of operator<<s that hide the definition in
the global namespace exist. Since the argumetns have type
std::ostream and std::pair<int,int>, Koenig lookup only searches
namespace std too. So, the definition of ::operator<< isn't
considered. Does this make sense to anyone?
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me
More information about the Libstdc++
mailing list