Subject: Re: [boost] [optional] Why was optional<T>::reset() deprecated?
From: Andrzej Krzemienski (akrzemi1_at_[hidden])
Date: 2016-03-02 06:16:05
2016-03-02 10:22 GMT+01:00 Andrey Semashev <andrey.semashev_at_[hidden]>:
> 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?
Technically, it should be possible to get away with it and create my own
constants of type boost::none_t (I think I sometimes need them in
expressions). But the total gain would be negligible.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk