all: misc and noexcept updates

This commit is contained in:
Markus F.X.J. Oberhumer
2023-07-09 17:36:24 +02:00
parent 300fa29446
commit 7ec0faca1e
41 changed files with 589 additions and 69 deletions
+8 -2
View File
@@ -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();