
9 Jan
2005
9 Jan
'05
2:51 p.m.
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