Update CppCoreGuidelines.md

Destructors are always marked as noexcept (unless noexcept(false)) using this word here is ambigious.
This commit is contained in:
Piotr Padlewski 2015-09-26 15:46:41 -07:00
parent 572119b71d
commit b8e9216bca

View File

@ -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
// ...
};
```