
At some earlier stages of development, boost::optional did not have the assignment from boost::none_t (and probably also from T); and reset was the only way to efficiently change the optional from the state of having the value to the state of not having the value. After the addition of more fancy syntax (conversion to bool, assignment from none_t), reset() (and is_initialized()) became redundant, and hence the deprecation. I got that from reading Boost mailing archives once. Regards, &rzej 2016-03-01 22:58 GMT+01:00 Nevin Liber <nevin@cplusplusguy.com>:
Does anyone know? We are considering adding it to std::optional this week.
Thanks, -- Nevin ":-)" Liber <mailto:nevin@cplusplusguy.com <nevin@eviloverlord.com
+1-847-691-1404
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost