From 4ed280b08071645f5e33c3d65c1ef46c9d779af6 Mon Sep 17 00:00:00 2001 From: hsutter Date: Wed, 16 Jan 2019 16:05:41 -0800 Subject: [PATCH] Closes #1315 --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 4a154e5..143f8c5 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -5768,7 +5768,7 @@ It is simple and efficient. If you want to optimize for rvalues, provide an over { // GOOD: no need to check for self-assignment (other than performance) auto tmp = x; - std::swap(*this, tmp); + swap(tmp); // see C.83 return *this; } // ...