Skip to content

Commit

Permalink
E.16: Fix inconsistent description (#2209)
Browse files Browse the repository at this point in the history
  • Loading branch information
boyeong-jeon authored Jul 2, 2024
1 parent 5ff9218 commit 50afe02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CppCoreGuidelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 50afe02

Please sign in to comment.