Boost logo

Boost :

Subject: Re: [boost] Policy proposal: All user-visible exceptions should be thrown through BOOST_THROW_EXCEPTION
From: Brant Knudson (blk_at_[hidden])
Date: 2012-06-27 17:21:55


>
> There are exception_ptr use cases for single threaded programs.
>

As an example, I've written an ASIO-based application that makes use
of callbacks where one of the arguments is an exception_ptr. If the
exception_ptr is not null then it contains the exception that occurred
during the requested operation. It can run with a single thread and
the exception transporting would still be useful. Before I used
exception transporting I was passing a status indicator which was not
nearly as nice.

-- Brant


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk