From 641c9fba9ca21bbf6d7112d6c6dfb95aae2bee8e Mon Sep 17 00:00:00 2001 From: Christian Mazakas Date: Fri, 20 May 2022 14:15:38 -0700 Subject: [PATCH] Update `operator()` implementations for predicate classes to properly return a bool --- test/objects/test.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/objects/test.hpp b/test/objects/test.hpp index 3b80d6c0..1479b5ab 100644 --- a/test/objects/test.hpp +++ b/test/objects/test.hpp @@ -290,7 +290,7 @@ namespace test { } } - std::size_t operator()(int x1, int x2) const { return x1 < x2; } + bool operator()(int x1, int x2) const { return x1 < x2; } friend bool operator==(less const& x1, less const& x2) { @@ -331,7 +331,7 @@ namespace test { } } - std::size_t operator()(int x1, int x2) const { return x1 == x2; } + bool operator()(int x1, int x2) const { return x1 == x2; } friend bool operator==(equal_to const& x1, equal_to const& x2) {