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. :-)

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to