8 Dec
2014
8 Dec
'14
12:35 p.m.
On 06/12/14 12:12, Paul A. Bristow wrote:
Nearly all Boost libraries assume use of exceptions, so are unsuited to applications that forbid exceptions, usually to meet hard real-time requirements.
That's not true. Most people have done the required work to make their libraries work correctly without exceptions. It's simple, all you have to do is use BOOST_THROW_EXCEPTION instead of throw. Then you can globally disable exceptions and define your own function that gets called instead. Of course this is a bit limited, as you cannot easily do proper error management, but most of the time it is good enough.