all: misc and noexcept updates
This commit is contained in:
@@ -63,9 +63,15 @@ public:
|
||||
#endif
|
||||
|
||||
#if DEBUG
|
||||
inline ~CSelf() { invalidate(); }
|
||||
~CSelf() noexcept {
|
||||
try {
|
||||
invalidate();
|
||||
} catch (...) {
|
||||
std::terminate();
|
||||
}
|
||||
}
|
||||
#else
|
||||
inline ~CSelf() noexcept {}
|
||||
forceinline ~CSelf() noexcept {}
|
||||
#endif
|
||||
noinline void invalidate() {
|
||||
assertInvariants();
|
||||
|
||||
Reference in New Issue
Block a user