|
Boost Users : |
From: Nat Goodspeed (nat_at_[hidden])
Date: 2008-05-08 10:16:20
Max wrote:
>> Hmm... how could I miss such a straightforward solution?? :)
>
> how is this solution straightforward? Please elaborate.
The OP stated that sometimes he needs his type to express "none of the
above." boost::optional is specifically intended to distinguish the case
in which you have no meaningful value -- rather like SQL's NULL.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net