]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Add test for chrono::leap_seconds ostream insertion
authorJonathan Wakely <jwakely@redhat.com>
Mon, 10 Jun 2024 20:10:29 +0000 (21:10 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 11 Jun 2024 10:11:22 +0000 (11:11 +0100)
commit84c87d1f43091c2e537182d029db9739de518096
treeb152fa6baaeeec354969aabdca552c80245cf466
parent75299e4fe50aa8d9b3ff529e48db4ed246083e64
libstdc++: Add test for chrono::leap_seconds ostream insertion

Also add a comment to the three-way comparison oeprator for
chrono::leap_seconds, noting the deviation from the spec (which is
functionally equivalent). What we implement is the originally proposed
resolution to LWG 3383, which should compile slightly more efficiently
than the final accepted resolution.

libstdc++-v3/ChangeLog:

* include/std/chrono (leap_seconds): Add comment.
* testsuite/std/time/leap_seconds/io.cc: New test.
libstdc++-v3/include/std/chrono
libstdc++-v3/testsuite/std/time/leap_seconds/io.cc [new file with mode: 0644]