mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Merge pull request #158 from prazek/patch-2
Update CppCoreGuidelines.md
This commit is contained in:
commit
f974ce87fd
|
@ -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
|
||||||
// ...
|
// ...
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue
Block a user