gcc/libstdc++-v3/testsuite/std
Jonathan Wakely 6cf214b4fc libstdc++: Add std::formatter specializations for extended float types
This makes it possible to format _Float32, _Float64 etc. in C++20 mode.
Previously it was only possible to format them in C++23 when the
<stdfloat> typedefs and the std::to_chars overloads were defined.

Instead of relying on std::to_chars for those types, we can just reuse
the formatters for float, double and long double. This also avoids
template bloat by reusing the same specializations instead of
instantiating __formatter_fp for every different type.

libstdc++-v3/ChangeLog:

	* include/std/format (formatter): Add partial specializations
	for extended floating-point types.
	* testsuite/std/format/functions/format.cc: Move test_float128()
	to ...
	* testsuite/std/format/formatter/ext_float.cc: New test.
2023-08-17 20:24:18 +01:00
..
concepts Update copyright years. 2023-01-16 11:52:17 +01:00
format libstdc++: Add std::formatter specializations for extended float types 2023-08-17 20:24:18 +01:00
ranges libstdc++: Implement P2770R0 changes to join_view / join_with_view 2023-08-17 12:56:32 -04:00
time libstdc++: Implement C++20 std::chrono::parse [PR104167] 2023-08-11 19:58:06 +01:00