Skip to content

Commit 50afe02

Browse files
authored
E.16: Fix inconsistent description (#2209)
1 parent 5ff9218 commit 50afe02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CppCoreGuidelines.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16363,7 +16363,7 @@ The standard library assumes that destructors, deallocation functions (e.g., `op
1636316363
* `swap` functions must be `noexcept`.
1636416364
* Most destructors are implicitly `noexcept` by default.
1636516365
* Also, [make move operations `noexcept`](#Rc-move-noexcept).
16366-
* 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.
16366+
* 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.
1636716367
* 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.
1636816368

1636916369
##### Enforcement

0 commit comments

Comments
 (0)