Boost logo

Boost :

Subject: Re: [boost] [exception] warnings on top of trunk
From: Daniel James (dnljms_at_[hidden])
Date: 2011-05-23 13:06:55


On 23 May 2011 16:44, Bryce Lelbach <blelbach_at_[hidden]> wrote:
>
> p.ptr is a shared_ptr to an exception_detail::clone_base. rethrow() is a pure
> virtual function. Therefore, there is no gurantee that rethrow() won't exit,
> and if it does, then rethrow_exception will exit, which could be catastrophic.

Since the class is in a detail namespace, user code shouldn't inherit
from it. So as long as the user follows our conventions, we can
guarantee that it exits. And if the user doesn't, it's their
responsibility.


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