Eric Friedman <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> Dave Gomboc wrote:
> [snip]
> > I don't like get() because I cannot write x.get() when x is a POD.  This
> > would mean I have to support nilable<T> and T with different code,
> > which is exactly what I'm trying to avoid.
>
> Why not overload boost::get again for optional? This would certainly improve
> consistency with variant. For instance:
>
This was my intention from the very beginning.
I was just waiting for variant<> to be out there.

>
> In the same line, we could make optional visitable:
>
And so about this.

Fernando Cacciola




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

Reply via email to