diff --git a/libcxx/include/complex b/libcxx/include/complex --- a/libcxx/include/complex +++ b/libcxx/include/complex @@ -148,12 +148,12 @@ template complex operator/(const T&, const complex&); // constexpr in C++20 template complex operator+(const complex&); // constexpr in C++20 template complex operator-(const complex&); // constexpr in C++20 -template bool operator==(const complex&, const complex&); // constexpr in C++14 -template bool operator==(const complex&, const T&); // constexpr in C++14 -template bool operator==(const T&, const complex&); // constexpr in C++14 -template bool operator!=(const complex&, const complex&); // constexpr in C++14 -template bool operator!=(const complex&, const T&); // constexpr in C++14 -template bool operator!=(const T&, const complex&); // constexpr in C++14 +template bool operator==(const complex&, const complex&); // constexpr in C++14 +template bool operator==(const complex&, const T&); // constexpr in C++14 +template bool operator==(const T&, const complex&); // removed in C++20 +template bool operator!=(const complex&, const complex&); // removed in C++20 +template bool operator!=(const complex&, const T&); // removed in C++20 +template bool operator!=(const T&, const complex&); // removed in C++20 template basic_istream& @@ -827,6 +827,8 @@ return __x.real() == __y && __x.imag() == 0; } +#if _LIBCPP_STD_VER <= 17 + template inline _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_SINCE_CXX14 bool @@ -859,6 +861,8 @@ return !(__x == __y); } +#endif + // 26.3.7 values: template ::value,