From a0ce1b361f0f304da755d4387bd730a140b2e018 Mon Sep 17 00:00:00 2001 From: John Colvin Date: Fri, 1 Oct 2021 15:05:42 -0400 Subject: [PATCH] Add >=, <= operators to ValueWrapper --- src/lib/utils/ValueWrapper.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/lib/utils/ValueWrapper.h b/src/lib/utils/ValueWrapper.h index 67f117e85..64a71a2eb 100644 --- a/src/lib/utils/ValueWrapper.h +++ b/src/lib/utils/ValueWrapper.h @@ -39,10 +39,18 @@ template constexpr bool operator>( const ValueWrapper &lhs, const ValueWrapper &rhs); +template +constexpr bool operator>=( + const ValueWrapper &lhs, const ValueWrapper &rhs); + template constexpr bool operator<( const ValueWrapper &lhs, const ValueWrapper &rhs); +template +constexpr bool operator<=( + const ValueWrapper &lhs, const ValueWrapper &rhs); + template std::ostream &operator<<(std::ostream &s, ValueWrapper const &v); @@ -93,7 +101,9 @@ constexpr ValueT &ValueWrapper::value() { BIN_OP(bool, ==) BIN_OP(bool, !=) BIN_OP(bool, >) +BIN_OP(bool, >=) BIN_OP(bool, <) +BIN_OP(bool, <=) #undef BIN_OP