CppCoreGuidelines icon indicating copy to clipboard operation
CppCoreGuidelines copied to clipboard

C.62 etc: Mention copy-and-swap. Eliminate misinformation about self-move-assignment

Open Quuxplusone opened this issue 4 years ago • 1 comments

Also mention the strong exception guarantee and maintainability; the "obviously correct" code in the old snippet was in fact NOT correct.

Also fix a ton of grammar issues in these sections.

Quuxplusone avatar Apr 18 '20 04:04 Quuxplusone

Didn't the standard have wording at some point that effectively forbid self move, because the implementation is allowed to assume that, if it has an r-value reference, that reference is the only one referencing that particular object? Has that been cleared up?

MikeGitb avatar Jul 16 '20 10:07 MikeGitb