
2 Jan
2009
2 Jan
'09
11:53 p.m.
On Fri, Jan 2, 2009 at 2:37 PM, Mathias Gaunard <mathias.gaunard@ens-lyon.org> 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. http://www.revergestudios.com/reblog/index.php?n=ReCode