|
|
|
|
@ -15052,7 +15052,7 @@ The standard library assumes that destructors, deallocation functions (e.g., `op
|
|
|
|
|
|
|
|
|
|
Deallocation functions, including `operator delete`, must be `noexcept`. `swap` functions must be `noexcept`.
|
|
|
|
|
Most destructors are implicitly `noexcept` by default.
|
|
|
|
|
Also, [make move operations `noexcept`](##Rc-move-noexcept).
|
|
|
|
|
Also, [make move operations `noexcept`](#Rc-move-noexcept).
|
|
|
|
|
|
|
|
|
|
##### Enforcement
|
|
|
|
|
|
|
|
|
|
@ -15153,7 +15153,7 @@ Consider `finally` a last resort.
|
|
|
|
|
|
|
|
|
|
##### Note
|
|
|
|
|
|
|
|
|
|
Use of `finally` is a systematic and reasonably clean alternative to the old [`goto exit;` technique](##Re-no-throw-codes)
|
|
|
|
|
Use of `finally` is a systematic and reasonably clean alternative to the old [`goto exit;` technique](#Re-no-throw-codes)
|
|
|
|
|
for dealing with cleanup where resource management is not systematic.
|
|
|
|
|
|
|
|
|
|
##### Enforcement
|
|
|
|
|
|