diff --git a/libcxx/docs/Status/SpaceshipProjects.csv b/libcxx/docs/Status/SpaceshipProjects.csv --- a/libcxx/docs/Status/SpaceshipProjects.csv +++ b/libcxx/docs/Status/SpaceshipProjects.csv @@ -61,7 +61,7 @@ | remove ops `memory_resource `_ | remove ops `polymorphic_allocator `_",None,Hristo Hristov,|Complete| "| `[allocator.adaptor.syn] `_ -| `[scoped.adaptor.operators] `_",| remove ops `scoped_allocator_adaptor`,None,Unassigned,|Not Started| +| `[scoped.adaptor.operators] `_",| remove ops `scoped_allocator_adaptor `_,None,Hristo Hristov,|Complete| "| `[functional.syn] `_ | `[range.cmp] `_ | `[func.wrap.func] `_ diff --git a/libcxx/include/scoped_allocator b/libcxx/include/scoped_allocator --- a/libcxx/include/scoped_allocator +++ b/libcxx/include/scoped_allocator @@ -103,7 +103,7 @@ template bool operator!=(const scoped_allocator_adaptor& a, - const scoped_allocator_adaptor& b) noexcept; + const scoped_allocator_adaptor& b) noexcept; // removed in C++20 } // std @@ -703,6 +703,8 @@ __a.inner_allocator() == __b.inner_allocator(); } +#if _LIBCPP_STD_VER <= 17 + template inline _LIBCPP_INLINE_VISIBILITY bool @@ -712,6 +714,8 @@ return !(__a == __b); } +#endif // _LIBCPP_STD_VER <= 17 + #endif // !defined(_LIBCPP_CXX03_LANG) _LIBCPP_END_NAMESPACE_STD