Commit graph

3 commits

Author SHA1 Message Date
7967f6270d bugfix: don't call the dtor on failed objects
When a ctor throws, the dtors of sub-objects have already been
invoked. The object itself never existed, strictly speaking,
and thus the dtor must not be invoked. Usually the runtime system
handles matters automatically this way, but since we're doing
here placement new into an array, we're responsible ourselves

This error was uncovered by compiling with Clang.
GCC automatically neutralised this erroneous dtor invocation.
2013-10-21 05:17:59 +02:00
3f1b7651e9 GPL header whitespace 2010-12-17 23:28:49 +01:00
bfc18dfb94 consider using RefArray for the Session API 2010-06-03 04:37:14 +02:00
Renamed from src/lib/refarrayimpl.hpp (Browse further)