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
+7 -1
View File
@@ -101,7 +101,13 @@ forceinline void assertInvariants() const noexcept {}
public:
#if DEBUG
inline ~CSelf() { invalidate(); }
~CSelf() noexcept {
try {
invalidate();
} catch (...) {
std::terminate();
}
}
#else
forceinline ~CSelf() noexcept {}
#endif