Update operator() implementations for predicate classes to properly return a bool

This commit is contained in:
Christian Mazakas
2022-05-20 14:15:38 -07:00
parent 8473d8120f
commit 641c9fba9c

View File

@ -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) 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) friend bool operator==(equal_to const& x1, equal_to const& x2)
{ {