From 9df6d95ddbf66284874579189dd5d9b5a1566915 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Fri, 20 Jun 2025 08:01:43 +0100 Subject: [PATCH] [diff.cpp23.strings] Move Clause 27 changes after Clause 23 changes The 'Strings' clause was moved before the new 'Text processing' clause, so it's now after the 'Containers' clause. The order of the [diff.cpp23] subclauses should reflect that. --- source/compatibility.tex | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/source/compatibility.tex b/source/compatibility.tex index 2e4d0d5bb6..87878a3075 100644 --- a/source/compatibility.tex +++ b/source/compatibility.tex @@ -240,25 +240,6 @@ \tcode{trivially_relocatable_if_eligible} as macros is invalid in this revision of \Cpp{}. -\rSec2[diff.cpp23.strings]{\ref{strings}: strings library} - -\diffref{string.conversions} -\change -Output of floating-point overloads of \tcode{to_string} and \tcode{to_wstring}. -\rationale -Prevent loss of information and improve consistency with other formatting -facilities. -\effect -\tcode{to_string} and \tcode{to_wstring} function calls that take -floating-point arguments may produce a different output. -\begin{example} -\begin{codeblock} -auto s = std::to_string(1e-7); // \tcode{"1e-07"} - // previously \tcode{"0.000000"} with \tcode{'.'} possibly - // changed according to the global C locale -\end{codeblock} -\end{example} - \rSec2[diff.cpp23.containers]{\ref{containers}: containers library} \diffref{span.overview} @@ -285,6 +266,25 @@ \end{codeblock} \end{example} +\rSec2[diff.cpp23.strings]{\ref{strings}: strings library} + +\diffref{string.conversions} +\change +Output of floating-point overloads of \tcode{to_string} and \tcode{to_wstring}. +\rationale +Prevent loss of information and improve consistency with other formatting +facilities. +\effect +\tcode{to_string} and \tcode{to_wstring} function calls that take +floating-point arguments may produce a different output. +\begin{example} +\begin{codeblock} +auto s = std::to_string(1e-7); // \tcode{"1e-07"} + // previously \tcode{"0.000000"} with \tcode{'.'} possibly + // changed according to the global C locale +\end{codeblock} +\end{example} + \rSec2[diff.cpp23.depr]{\ref{depr}: compatibility features} \nodiffref