mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 08:21:29 +12:00
Another attempt to fix OSX
This commit is contained in:
parent
4662ee0255
commit
3e0e1f668c
1 changed files with 5 additions and 2 deletions
|
@ -252,7 +252,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
template <typename T2>
|
template <typename T2, typename = decltype(+std::declval<const T2&>())>
|
||||||
bool operator==(const T2& rhs) const noexcept
|
bool operator==(const T2& rhs) const noexcept
|
||||||
{
|
{
|
||||||
using R = simple_t<T2>;
|
using R = simple_t<T2>;
|
||||||
|
@ -277,11 +277,14 @@ public:
|
||||||
return value() == rhs;
|
return value() == rhs;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T2>
|
#if __cpp_impl_three_way_comparison >= 201711
|
||||||
|
#else
|
||||||
|
template <typename T2, typename = decltype(+std::declval<const T2&>())>
|
||||||
bool operator!=(const T2& rhs) const noexcept
|
bool operator!=(const T2& rhs) const noexcept
|
||||||
{
|
{
|
||||||
return !operator==<T2>(rhs);
|
return !operator==<T2>(rhs);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
private:
|
private:
|
||||||
template <typename T2>
|
template <typename T2>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue