CppCoreGuidelines
CppCoreGuidelines copied to clipboard
E.16 not noexcept copy constructor
These two sentences appear to contradict each other in the bottom Note of E.16:
ensure its copy constructor is not noexcept.
Try not to throw a type whose copy constructor is not noexcept.
According to proposal #1921, perhaps here is:
ensure its copy constructor is noexcept.
Although the wording in the logic might be convoluted, the two sentences agree on an exception type, or a type to throw, having a noexcept copy constructor.