Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-12-11 15:49:47


From: "Fernando Cacciola" <fernando_cacciola_at_[hidden]>
> >
> > You should consider providing operator<<(std::ostream&, optional), too.
> >
> Interesting...
> The idea is that if the optional is uninitialized, it outputs something
like
> "[NULL]",
> else forwards to T::operator <<(), right?
>
> I agree it is usefull, but I'm not sure if it should be provided by the
> library itself.

If you have a conversion to a "member pointer bool", you have to provide a
reasonable operator<<, too, otherwise the standard operator<<(ostream&,
bool) is used. :-)


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk