]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Constrain operator<< for chrono::local_type
authorJonathan Wakely <jwakely@redhat.com>
Thu, 28 Aug 2025 12:59:09 +0000 (13:59 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 19 Sep 2025 20:12:15 +0000 (21:12 +0100)
commitdc78d691c5e5f72cd05113c4734985aa4e70cc47
tree2eb4b117f76ecc53a47c2b8de7a7740f2984a030
parent12992edaa96897d4ce26c3d48fa19c142b0aef28
libstdc++: Constrain operator<< for chrono::local_type

This was reported as LWG 4257 and moved to Tentatively Ready status.

libstdc++-v3/ChangeLog:

* include/bits/chrono_io.h: Remove unused <iomanip> header.
(operator<<): Constrain overload for chrono::local_time.
* testsuite/std/time/clock/local/io.cc: Check constraints.

Reviewed-by: Patrick Palka <ppalka@redhat.com>
libstdc++-v3/include/bits/chrono_io.h
libstdc++-v3/testsuite/std/time/clock/local/io.cc