Boost logo

Boost Users :

Subject: [Boost-users] [optional] How to make boost::optional throw if trying to access uninitialized value
From: dariomt_at_[hidden]
Date: 2009-07-09 13:13:11


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 list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net