|
Boost : |
Subject: Re: [boost] sqlpp11, 3rd iteration
From: Roland Bock (rbock_at_[hidden])
Date: 2014-08-22 10:47:41
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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk