[*] C++17 doesn't like this quick auNumberUtils TR1 patch

This commit is contained in:
Reece Wilson 2024-12-03 21:32:25 +00:00
parent f3e0bfd4d3
commit 2986577cb7

View File

@ -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<T>())(lhs, rhs);
return AuHash::less<T>()(lhs, rhs);
}
};
@ -140,7 +140,7 @@ struct AuLess<void>
template <class T>
bool operator()(const T &lhs, const T &rhs) const
{
return (AuHash::less<T>())(lhs, rhs);
return AuHash::less<T>()(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<T>())(lhs, rhs)) &&
!((AuHash::less<T>())(lhs, rhs));
return !(AuHash::equal<T>()(lhs, rhs)) &&
!(AuHash::less<T>()(lhs, rhs));
}
};
@ -162,8 +162,8 @@ struct AuGreater<void>
template <class T>
bool operator()(const T &lhs, const T &rhs) const
{
return !((AuHash::equal<T>())(lhs, rhs)) &&
!((AuHash::less<T>())(lhs, rhs));
return !(AuHash::equal<T>()(lhs, rhs)) &&
!(AuHash::less<T>()(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<T>())(lhs, rhs);
return AuHash::equal<T>()(lhs, rhs);
}
};
@ -184,7 +184,7 @@ struct AuEqual<void>
template <class T>
bool operator()(const T &lhs, const T &rhs) const
{
return (AuHash::equal<T>())(lhs, rhs);
return AuHash::equal<T>()(lhs, rhs);
}
};