diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 66409fb..2c22a38 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -6428,7 +6428,7 @@ Providing a non-member `swap` function in the same namespace as your type for ca ##### Enforcement -* (Simple) A class without virtual functions should have a `swap` member function declared. +* Non-trivially copyable value types should provide a member swap or a free swap overload. * (Simple) When a class has a `swap` member function, it should be declared `noexcept`. ### C.84: A `swap` function must not fail