3 ms·
Been using boost for this (what else is new?): https://theboostcpplibraries.com/boost.optional https://theboostcpplibraries.com/boost.optional https://stackov
by boltzmannbrain 8y ago
Been using boost for this (what else is new?):
https://theboostcpplibraries.com/boost.optional https://theboostcpplibraries.com/boost.optional
https://stackoverflow.com/questions/22227839/how-to-use-boostoptional https://stackoverflow.com/questions/22227839/how-to-use-boos...
- beached_whale 8y agoconstexpr I think is the big difference. Also the name of the empty class to reset the value to none, boost is boost::none whereas the std has std::nullopt_t. I prefer the boost name of none as nullopt sounds and looks too much like null.