« Return to Thread: [optional] How to make boost::optional throw if trying to access uninitialized value

[optional] How to make boost::optional throw if trying to access uninitialized value

by dariomt :: Rate this Message:

Reply to Author | View in Thread

Hi list,

I've seen in the docs that boost::optional asserts if you try to access an uninitialized value.

Is it possible to make it throw an exception instead? Even in release mode?

TIA


_______________________________________________
Boost-users mailing list
Boost-users@...
http://lists.boost.org/mailman/listinfo.cgi/boost-users

 « Return to Thread: [optional] How to make boost::optional throw if trying to access uninitialized value