----- Original Message ----- From: "Peter Dimov" <[EMAIL PROTECTED]> To: "Boost mailing list" <[EMAIL PROTECTED]> Sent: Wednesday, December 11, 2002 5:49 PM Subject: Re: [boost] Formal review: Optional library
> From: "Fernando Cacciola" <[EMAIL PROTECTED]> > > > > > > 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 _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost