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:
parent
0a3897f60a
commit
10f830809b
11 changed files with 164 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue