Boost logo

Boost Users :

Subject: Re: [Boost-users] [fusion] adapted std::pair and ostream
From: Nathan Ridge (zeratul976_at_[hidden])
Date: 2011-07-19 19:21:36

> > But this seems to be in contradiction with the docs, which say [1]
> > (emphasis mine):
> >
> > The **global** |operator<<| has been overloaded for generic
> > output streams such that Sequence
> > <>(s) are
> > output by recursively
> > calling |operator<<| for each element.
> >
> > Perhaps the authors were relying on ADL to find operator<<,
> > but overlooking the fact that not all sequences would be in the
> > boost::fusion namespace?
> Thanks. That's certainly not correct. Adapted sequences in other
> namespaces can't avail of that. I just fixed the docs to avoid
> further confusion.

Why not just overload operators << and >> in the global namespace,
as the docs say, rather than overloading them in the boost::fusion


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at