E.16: Fix inconsistent description (#2209)

pull/2217/head
boyeong-jeon 2 years ago committed by GitHub
parent 5ff92185f3
commit 50afe0234c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -16363,7 +16363,7 @@ The standard library assumes that destructors, deallocation functions (e.g., `op
* `swap` functions must be `noexcept`.
* Most destructors are implicitly `noexcept` by default.
* Also, [make move operations `noexcept`](#Rc-move-noexcept).
* If writing a type intended to be used as an exception type, ensure its copy constructor is not `noexcept`. In general we cannot mechanically enforce this, because we do not know whether a type is intended to be used as an exception type.
* If writing a type intended to be used as an exception type, ensure its copy constructor is `noexcept`. In general we cannot mechanically enforce this, because we do not know whether a type is intended to be used as an exception type.
* Try not to `throw` a type whose copy constructor is not `noexcept`. In general we cannot mechanically enforce this, because even `throw std::string(...)` could throw but does not in practice.
##### Enforcement

Loading…
Cancel
Save