libstdc++: Add comparison operators to types from Numerics clause
authorJonathan Wakely <jwakely@redhat.com>
Wed, 8 Apr 2020 15:51:59 +0000 (16:51 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 8 Apr 2020 15:51:59 +0000 (16:51 +0100)
commitef389dadd4f082e13b076f14a123bf506e158da4
treeaff0c327563eda85858e55d215e4e761b5349e9a
parente4b84abcc46fb4270172584ac5a4b46d70e93259
libstdc++: Add comparison operators to types from Numerics clause

Some more C++20 changes from P1614R2, "The Mothership has Landed".

* include/bits/slice_array.h (operator==(const slice&, const slice&)):
Define for C++20.
* include/std/complex (operator==(const T&, const complex<T>&))
(operator!=(const complex<T>&, const complex<T>&))
(operator!=(const complex<T>&, const T&))
(operator!=(const T&, const complex<T>&)): Do not declare for C++20.
* testsuite/26_numerics/slice/compare.cc: New test.
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/slice_array.h
libstdc++-v3/include/std/complex
libstdc++-v3/testsuite/26_numerics/slice/compare.cc [new file with mode: 0644]