|
Boost : |
From: Jason Hise (chaos_at_[hidden])
Date: 2005-01-09 09:51:58
Pavel Vozenilek wrote:
>Small note: there's one try/catch block that can
>be replaced with RAII. It would make system compilable
>even when exceptions are disabled.
>
Actually, that try block exists for only the specific case when the
constructor throws... I'm not sure how it could be implemented via RAII,
as dependencies should only be decremented upon failure. The dtor
itself, and thus ReleaseDependency, should not be called if new or the
ctor throws.
-Jason
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk