|
Boost : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-04-10 06:16:00
From: "Giovanni Bajo" <giovannibajo_at_[hidden]>
> From: "Matthias Troyer" <troyer_at_[hidden]>
>
> > I see in regex that you always abort when an exception would be thrown.
> > This is also an acceptable behavior in my applications and I guess
> > the only consistent behavior. If there are no better ideas, I'll clean
> > up my patches and submit them.
>
> What about an assertion?
The problem with an assertion is that it may continue. In the smart pointer
library, continuing in a situation where an exception would've been thrown
is a disaster.
Also, weak_ptr, particularly the shared_ptr(weak_ptr const &) constructor,
cannot (easily) be made to work without exceptions.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk