$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] Use of boost in safety critical work
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2014-12-08 07:35:27
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.