In fact boost::optional examples use default constructor in this case - at least all examples I've seen, see http://www.boost.org/doc/libs/1_58_0/libs/optional/doc/html/...
Are you sure about that? Both resources below say something opposite. http://bit.ly/1SEnJQe - see optional<T>::optional() and http://bit.ly/1lh7eyv - see default constructor (I'm just curious) Edit: I've tested it, you…
I've just updated this article, thanks for interest & for sharing it btw.
In fact boost::optional examples use default constructor in this case - at least all examples I've seen, see http://www.boost.org/doc/libs/1_58_0/libs/optional/doc/html/...
Are you sure about that? Both resources below say something opposite. http://bit.ly/1SEnJQe - see optional<T>::optional() and http://bit.ly/1lh7eyv - see default constructor (I'm just curious) Edit: I've tested it, you…
I've just updated this article, thanks for interest & for sharing it btw.