
8 May
2008
8 May
'08
2:16 p.m.
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.