Boost logo

Boost :

Subject: Re: [boost] [optional] Why was optional<T>::reset() deprecated?
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2016-03-02 04:22:22


On 2016-03-02 11:39, Andrzej Krzemienski wrote:
> 2016-03-02 9:20 GMT+01:00 Andrey Semashev <andrey.semashev_at_[hidden]>:
>
>> Having 'reset' also allows not to include boost/none.hpp.
>
> You cannot avoid including boost/none.hpp. Whenever you include
> boost/optional/optional.hpp, boost/none.hpp is indirectly included.

Well, at least in the user's code I can avoid it (less typing). But
isn't none_t.hpp enough for optional's needs?


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