From 2986577cb7005158cb6d52ec8e59e8ac72682eb4 Mon Sep 17 00:00:00 2001 From: Jamie Reece Wilson Date: Tue, 3 Dec 2024 21:32:25 +0000 Subject: [PATCH] [*] C++17 doesn't like this quick auNumberUtils TR1 patch --- Include/auROXTL/auNumberUtils.hpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Include/auROXTL/auNumberUtils.hpp b/Include/auROXTL/auNumberUtils.hpp index 8a1f9f7..125443c 100644 --- a/Include/auROXTL/auNumberUtils.hpp +++ b/Include/auROXTL/auNumberUtils.hpp @@ -129,7 +129,7 @@ struct AuLess // intentionally not constexpr (but it should compile down to nothing) bool operator()(const T &lhs, const T &rhs) const { - return (AuHash::less())(lhs, rhs); + return AuHash::less()(lhs, rhs); } }; @@ -140,7 +140,7 @@ struct AuLess template bool operator()(const T &lhs, const T &rhs) const { - return (AuHash::less())(lhs, rhs); + return AuHash::less()(lhs, rhs); } }; @@ -150,8 +150,8 @@ struct AuGreater // intentionally not constexpr (but it should compile down to nothing) bool operator()(const T &lhs, const T &rhs) const { - return !((AuHash::equal())(lhs, rhs)) && - !((AuHash::less())(lhs, rhs)); + return !(AuHash::equal()(lhs, rhs)) && + !(AuHash::less()(lhs, rhs)); } }; @@ -162,8 +162,8 @@ struct AuGreater template bool operator()(const T &lhs, const T &rhs) const { - return !((AuHash::equal())(lhs, rhs)) && - !((AuHash::less())(lhs, rhs)); + return !(AuHash::equal()(lhs, rhs)) && + !(AuHash::less()(lhs, rhs)); } }; @@ -173,7 +173,7 @@ struct AuEqual // intentionally not constexpr (but it should compile down to nothing) bool operator()(const T &lhs, const T &rhs) const { - return (AuHash::equal())(lhs, rhs); + return AuHash::equal()(lhs, rhs); } }; @@ -184,7 +184,7 @@ struct AuEqual template bool operator()(const T &lhs, const T &rhs) const { - return (AuHash::equal())(lhs, rhs); + return AuHash::equal()(lhs, rhs); } };