Merge pull request #158 from prazek/patch-2

Update CppCoreGuidelines.md
This commit is contained in:
Gabriel Dos Reis
2015-09-26 16:52:16 -07:00

View File

@@ -12008,7 +12008,7 @@ Never allow an error to be reported from a destructor, a resource deallocation f
class nefarious { class nefarious {
public: public:
nefarious() { /* code that could throw */ } // ok nefarious() { /* code that could throw */ } // ok
~nefarious() { /* code that could throw */ } // BAD, should be noexcept ~nefarious() { /* code that could throw */ } // BAD, should not throw
// ... // ...
}; };
``` ```