gcc/libstdc++-v3
Jonathan Wakely f99b94865f libstdc++: Add std::format support to <chrono>
This adds the operator<< overloads and std::formatter specializations
required by C++20 so that <chrono> types can be written to ostreams and
printed with std::format.

libstdc++-v3/ChangeLog:

	* include/Makefile.am: Add new header.
	* include/Makefile.in: Regenerate.
	* include/std/chrono (operator<<): Move to new header.
	(nonexistent_local_time::_M_make_what_str): Define correctly.
	(ambiguous_local_time::_M_make_what_str): Likewise.
	* include/bits/chrono_io.h: New file.
	* src/c++20/tzdb.cc (operator<<(ostream&, const Rule&)): Use
	new ostream output for month and weekday types.
	* testsuite/20_util/duration/io.cc: Test std::format support.
	* testsuite/std/time/exceptions.cc: Check what() strings.
	* testsuite/std/time/syn_c++20.cc: Uncomment local_time_format.
	* testsuite/std/time/time_zone/get_info_local.cc: Enable check
	for formatted output of local_info objects.
	* testsuite/std/time/clock/file/io.cc: New test.
	* testsuite/std/time/clock/gps/io.cc: New test.
	* testsuite/std/time/clock/system/io.cc: New test.
	* testsuite/std/time/clock/tai/io.cc: New test.
	* testsuite/std/time/clock/utc/io.cc: New test.
	* testsuite/std/time/day/io.cc: New test.
	* testsuite/std/time/format.cc: New test.
	* testsuite/std/time/hh_mm_ss/io.cc: New test.
	* testsuite/std/time/month/io.cc: New test.
	* testsuite/std/time/weekday/io.cc: New test.
	* testsuite/std/time/year/io.cc: New test.
	* testsuite/std/time/year_month_day/io.cc: New test.
2022-12-22 23:34:27 +00:00
..
config libstdc++: Implement C++20 time zone support in <chrono> 2022-12-22 23:34:20 +00:00
doc libstdc++: Change return type of std::bit_width to int (LWG 3656) 2022-11-25 00:22:01 +00:00
include libstdc++: Add std::format support to <chrono> 2022-12-22 23:34:27 +00:00
libsupc++ libstdc++: Fix _Hash_bytes for I16LP32 targets [PR107885] 2022-11-28 16:57:35 +00:00
po libstdc++: Don't use gstdint.h anymore 2022-10-29 00:55:42 +01:00
python libstdc++: Add GDB printers for <chrono> types 2022-12-22 23:34:26 +00:00
scripts libstdc++: use grep -E instead of egrep in scripts 2022-06-24 20:31:31 +08:00
src libstdc++: Add std::format support to <chrono> 2022-12-22 23:34:27 +00:00
testsuite libstdc++: Add std::format support to <chrono> 2022-12-22 23:34:27 +00:00
acinclude.m4 libstdc++: Implement C++20 time zone support in <chrono> 2022-12-22 23:34:20 +00:00
aclocal.m4 libstdc++: Don't use gstdint.h anymore 2022-10-29 00:55:42 +01:00
ChangeLog Daily bump. 2022-12-22 00:17:29 +00:00
ChangeLog-1998
ChangeLog-1999
ChangeLog-2000
ChangeLog-2001
ChangeLog-2002
ChangeLog-2003
ChangeLog-2004
ChangeLog-2005
ChangeLog-2006
ChangeLog-2007
ChangeLog-2008
ChangeLog-2009
ChangeLog-2010
ChangeLog-2011
ChangeLog-2012
ChangeLog-2013
ChangeLog-2014
ChangeLog-2015
ChangeLog-2016
ChangeLog-2017
ChangeLog-2018
ChangeLog-2019
ChangeLog-2020
ChangeLog-2021 Rotate ChangeLog files - part 1 - add ChangeLog-2021. 2022-01-03 10:18:16 +01:00
config.h.in libstdc++: Implement C++20 time zone support in <chrono> 2022-12-22 23:34:20 +00:00
configure libstdc++: Implement C++20 time zone support in <chrono> 2022-12-22 23:34:20 +00:00
configure.ac libstdc++: Implement C++20 time zone support in <chrono> 2022-12-22 23:34:20 +00:00
configure.host
crossconfig.m4 libstdc++: Allow emergency EH alloc pool size to be tuned [PR68606] 2022-10-11 16:21:48 +01:00
fragment.am
linkage.m4
Makefile.am Update copyright years. 2022-01-03 10:42:10 +01:00
Makefile.in libstdc++: Don't use gstdint.h anymore 2022-10-29 00:55:42 +01:00
README

file: libstdc++-v3/README

New users may wish to point their web browsers to the file
index.html in the 'doc/html' subdirectory.  It contains brief
building instructions and notes on how to configure the library in
interesting ways.