libstdc++: Add comparison operators to <chrono> types
authorJonathan Wakely <jwakely@redhat.com>
Fri, 17 Apr 2020 23:47:45 +0000 (00:47 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 17 Apr 2020 23:47:45 +0000 (00:47 +0100)
commit27c171775abb943d59e2b3fb6fbc0b3680fc7a39
treeca2266294ce8b4edfcf898f16c522d8579753cc5
parentc9960294062dbda0847d26a1b5ee37a55210d69c
libstdc++: Add comparison operators to <chrono> types

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

* include/std/chrono (duration, time_point): Define operator<=> and
remove redundant operator!= for C++20.
* testsuite/20_util/duration/comparison_operators/three_way.cc: New
test.
* testsuite/20_util/time_point/comparison_operators/three_way.cc: New
test.
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/chrono
libstdc++-v3/testsuite/20_util/duration/comparison_operators/three_way.cc [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/time_point/comparison_operators/three_way.cc [new file with mode: 0644]