Boost logo

Boost :

From: Fernando Cacciola (fernando_cacciola_at_[hidden])
Date: 2003-09-01 13:43:41


Eric Friedman <ebf_at_[hidden]> wrote in message news:biupqr$j8m$1_at_sea.gmane.org...
> 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


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