Boost logo

Boost :

Subject: Re: [boost] [exception]throw_exceptions concerns
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2009-01-02 18:53:18

On Fri, Jan 2, 2009 at 2:37 PM, Mathias Gaunard
<mathias.gaunard_at_[hidden]> wrote:
> Emil Dotchevski wrote:
>> Boost::exception is copy constructable but its copy constructor is
>> protected
> Doesn't the standard mandate a public copy constructor for exception types?

Yes, but you never throw boost::exception, you throw types that derive
from it, which are required to have public copy constructor.

You can still catch(boost::exception &), and you can still re-throw
using a throw-expression with no operand (15.1.6).

Emil Dotchevski
Reverge Studios, Inc.

Boost list run by bdawes at, gregod at, cpdaniel at, john at