From 4f97d37239bfbf868303209f278c705a8f3d7507 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Knoblauch=20Revuelta?= Date: Thu, 28 Feb 2019 10:08:16 +0100 Subject: [PATCH] Fix args. of == and != operators in C.100 (#1359) Obviously, the comparisons are intended to compare `Sorted_vector`s, not `T` values --- CppCoreGuidelines.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 719bbc1..179718c 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -6599,8 +6599,8 @@ In particular, `std::vector` and `std::map` provide useful relatively simple mod std::vector rep; // use a std::vector to hold elements }; - template bool operator==(const T&); - template bool operator!=(const T&); + template bool operator==(const Sorted_vector&, const Sorted_vector&); + template bool operator!=(const Sorted_vector&, const Sorted_vector&); // ... Here, the STL style is followed, but incompletely.