Open
Description
C.21 is missing an exception for the copy-and-swap idiom. It's perfectly safe (and considered idiomatic by many) for resource management to write:
T& operator=(T) noexcept { /* ... */ }
This would violate C.21 since technically, the user has only defined the copy assignment operator, and the move assignment operator is implicitly not declared.
The lack of an exception to this rule also manifests itself in clang-tidy false positives. See:
Metadata
Metadata
Assignees
Labels
No labels