2 Mar
2016
2 Mar
'16
11:16 a.m.
2016-03-02 10:22 GMT+01:00 Andrey Semashev
On 2016-03-02 11:39, Andrzej Krzemienski wrote:
2016-03-02 9:20 GMT+01:00 Andrey Semashev
: 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. Regards, &rzej