From c8e72981c4f019eca89d93229c70a8cce017ec15 Mon Sep 17 00:00:00 2001 From: Herb Sutter Date: Thu, 1 Apr 2021 11:41:27 -0700 Subject: [PATCH] Fixed misapplied edit for `<=>` --- CppCoreGuidelines.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index f85e3bb..2b81342 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -6513,11 +6513,11 @@ The alternative is to make two failure states compare equal and any valid state ##### Note -This rule applies to all the usual comparison operators: `!=`, `<`, `<=`, `>`, `>=`, and `<=>`. +This rule applies to all the usual comparison operators: `!=`, `<`, `<=`, `>`, and `>=`. ##### Enforcement -* Flag an `operator==()` for which the argument types differ; same for other comparison operators: `!=`, `<`, `<=`, `>`, `>=`, and `<=>`. +* Flag an `operator==()` for which the argument types differ; same for other comparison operators: `!=`, `<`, `<=`, `>`, and `>=`. * Flag member `operator==()`s; same for other comparison operators: `!=`, `<`, `<=`, `>`, and `>=`. ### C.87: Beware of `==` on base classes @@ -6562,11 +6562,11 @@ Of course there are ways of making `==` work in a hierarchy, but the naive appro ##### Note -This rule applies to all the usual comparison operators: `!=`, `<`, `<=`, `>`, and `>=`. +This rule applies to all the usual comparison operators: `!=`, `<`, `<=`, `>`, `>=`, and `<=>`. ##### Enforcement -* Flag a virtual `operator==()`; same for other comparison operators: `!=`, `<`, `<=`, `>`, and `>=`. +* Flag a virtual `operator==()`; same for other comparison operators: `!=`, `<`, `<=`, `>`, `>=`, and `<=>`. ### C.89: Make a `hash` `noexcept`