22 Aug
2014
22 Aug
'14
2:47 p.m.
On 2014-08-22 12:29, Bjorn Reese wrote:
On 08/21/2014 05:32 PM, Roland Bock wrote:
* If I call get() on an uninitialized boost::optional, I run into a
optional<T>::value() throws. Notice that get() is not part of the std::optional proposal. Oh, missed that. Sorry.
Thanks for the std::optional information :-) Ok, so I could have operator optional<int>; // only in variant A operator int() const; // only in variant B In addition: bool is_null() const; int value() const; // throws if field is null Best, Roland