Boost logo

Boost :

From: Fernando Cacciola (fernando_cacciola_at_[hidden])
Date: 2002-12-11 16:15:36


----- Original Message -----
From: "Peter Dimov" <pdimov_at_[hidden]>
To: "Boost mailing list" <boost_at_[hidden]>
Sent: Wednesday, December 11, 2002 5:49 PM
Subject: Re: [boost] Formal review: Optional library

> 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. :-)
>
Good point!

Fernando Cacciola


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