From 3e0e1f668ca971f2a3298a4db38c9a9fb0977cfe Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Thu, 20 Feb 2020 16:54:51 +0300 Subject: [PATCH] Another attempt to fix OSX --- rpcs3/util/endian.hpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/rpcs3/util/endian.hpp b/rpcs3/util/endian.hpp index a5460261f2..c7b480fd48 100644 --- a/rpcs3/util/endian.hpp +++ b/rpcs3/util/endian.hpp @@ -252,7 +252,7 @@ private: } public: - template + template ())> bool operator==(const T2& rhs) const noexcept { using R = simple_t; @@ -277,11 +277,14 @@ public: return value() == rhs; } - template +#if __cpp_impl_three_way_comparison >= 201711 +#else + template ())> bool operator!=(const T2& rhs) const noexcept { return !operator==(rhs); } +#endif private: template