gcc/libstdc++-v3
Jonathan Wakely 5fbc1b2e7c libstdc++: Fix std::runtime_format deviations from the spec [PR113320]
I seem to have implemented this feature based on the P2918R0 revision,
not the final P2918R2 one that was approved for C++26. This commit fixes
it.

The runtime-format-string type should not have a publicly accessible
data member, so add a constructor and make it a friend of
basic_format_string. It should also be non-copyable, so that it can only
be constructed from a prvalue via temporary materialization. Change the
basic_format_string constructor parameter to pass by value. Also add
noexcept to the constructors and runtime_format generator functions.

libstdc++-v3/ChangeLog:

	PR libstdc++/113320
	* include/std/format (__format::_Runtime_format_string): Add
	constructor and disable copy operations.
	(basic_format_string(_Runtime_format_string)): Add noexcept and
	take parameter by value not rvalue reference.
	(runtime_format): Add noexcept.
	* testsuite/std/format/runtime_format.cc: Check noexcept. Check
	that construction is only possible from prvalues, not xvalues.

Reviewed-by: Daniel Krügler <daniel.kruegler@gmail.com>
2024-01-12 09:45:53 +00:00
..
config Update copyright years. 2024-01-03 12:19:35 +01:00
doc libstdc++: Fix spelling mistake in new doc addition 2024-01-11 21:24:37 +00:00
include libstdc++: Fix std::runtime_format deviations from the spec [PR113320] 2024-01-12 09:45:53 +00:00
libsupc++ libstdc++: use updated type for __unexpected_handler 2024-01-11 19:11:45 +00:00
po Update copyright years. 2024-01-03 12:19:35 +01:00
python libstdc++: Add GDB printer for std::integral_constant 2024-01-11 17:35:57 +00:00
scripts Fix spurious match in extract_symvers 2024-01-09 23:11:42 +01:00
src libstdc++: [_GLIBCXX_DEBUG] Fix assignment of value-initialized iterator [PR112477] 2024-01-11 19:29:37 +01:00
testsuite libstdc++: Fix std::runtime_format deviations from the spec [PR113320] 2024-01-12 09:45:53 +00:00
acinclude.m4 libstdc++: Fix filebuf::native_handle() for Windows 2023-12-14 23:59:21 +00:00
aclocal.m4
ChangeLog Daily bump. 2024-01-12 00:17:54 +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
ChangeLog-2022 Rotate ChangeLog files. 2023-01-01 16:20:13 +01:00
ChangeLog-2023 Rotate ChangeLog files. 2024-01-03 11:29:39 +01:00
config.h.in libstdc++: Regenerate config.h.in 2023-11-17 15:28:43 +00:00
configure libstdc++: Fix filebuf::native_handle() for Windows 2023-12-14 23:59:21 +00:00
configure.ac Config,Darwin: Allow for configuring Darwin to use embedded runpath. 2023-10-22 19:30:02 +01:00
configure.host LoongArch: Adjust C++ multilib header layout. 2023-09-08 17:51:06 +08:00
crossconfig.m4
fragment.am
linkage.m4 libstdc++: Remove handling for underscore-prefixed libm functions [PR111638] 2023-11-11 00:41:08 +00:00
Makefile.am Update copyright years. 2024-01-03 12:19:35 +01:00
Makefile.in Allow overriding EXPECT 2023-12-22 10:24:56 +00: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.