libstdc++: Add comparison operators to <charconv> result types
authorJonathan Wakely <jwakely@redhat.com>
Wed, 8 Apr 2020 15:16:10 +0000 (16:16 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 8 Apr 2020 15:16:10 +0000 (16:16 +0100)
commite18cd376e0d5ffc2a2b21eba0c396a771c30e1d4
treee1d9ad6e5dc9494a76e22bd5128788663af579b7
parentef684c7827361e7e66543b4511fb1ca15ace4b1f
libstdc++: Add comparison operators to <charconv> result types

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

* include/std/charconv (to_chars_result, from_chars_result): Add
defaulted equality comparisons for C++20.
* testsuite/20_util/from_chars/compare.cc: New test.
* testsuite/20_util/to_chars/compare.cc: New test.
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/charconv
libstdc++-v3/testsuite/20_util/from_chars/compare.cc [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/to_chars/compare.cc [new file with mode: 0644]