From b8e9216bca672191b1a242fce3471544aeb613e8 Mon Sep 17 00:00:00 2001 From: Piotr Padlewski Date: Sat, 26 Sep 2015 15:46:41 -0700 Subject: [PATCH] Update CppCoreGuidelines.md Destructors are always marked as noexcept (unless noexcept(false)) using this word here is ambigious. --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 6b9ea46..5ecf483 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -12008,7 +12008,7 @@ Never allow an error to be reported from a destructor, a resource deallocation f class nefarious { public: nefarious() { /* code that could throw */ } // ok - ~nefarious() { /* code that could throw */ } // BAD, should be noexcept + ~nefarious() { /* code that could throw */ } // BAD, should not throw // ... }; ```