Add unit test for the deferred virtual call implementation in SizeNotifiable.

Fix the build as necessary.
Change DeferredRegister() to take no construction parameters.
This commit is contained in:
King_DuckZ 2016-11-14 00:29:49 +01:00
parent 0a3897f60a
commit 10f830809b
11 changed files with 164 additions and 16 deletions

View file

@ -67,7 +67,7 @@ namespace cloonel {
///--------------------------------------------------------------------------
DeferredRegister::~DeferredRegister() {
assert(m_call);
if (not std::uncaught_exception())
if (m_call and not std::uncaught_exception())
m_call();
}
} //namespace cloonel