Skip to content

Commit 3bce8f7

Browse files
jwakelytkoeppe
authored andcommitted
[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.
1 parent c355072 commit 3bce8f7

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

source/compatibility.tex

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -240,25 +240,6 @@
240240
\tcode{trivially_relocatable_if_eligible} as macros is invalid
241241
in this revision of \Cpp{}.
242242

243-
\rSec2[diff.cpp23.strings]{\ref{strings}: strings library}
244-
245-
\diffref{string.conversions}
246-
\change
247-
Output of floating-point overloads of \tcode{to_string} and \tcode{to_wstring}.
248-
\rationale
249-
Prevent loss of information and improve consistency with other formatting
250-
facilities.
251-
\effect
252-
\tcode{to_string} and \tcode{to_wstring} function calls that take
253-
floating-point arguments may produce a different output.
254-
\begin{example}
255-
\begin{codeblock}
256-
auto s = std::to_string(1e-7); // \tcode{"1e-07"}
257-
// previously \tcode{"0.000000"} with \tcode{'.'} possibly
258-
// changed according to the global C locale
259-
\end{codeblock}
260-
\end{example}
261-
262243
\rSec2[diff.cpp23.containers]{\ref{containers}: containers library}
263244

264245
\diffref{span.overview}
@@ -285,6 +266,25 @@
285266
\end{codeblock}
286267
\end{example}
287268

269+
\rSec2[diff.cpp23.strings]{\ref{strings}: strings library}
270+
271+
\diffref{string.conversions}
272+
\change
273+
Output of floating-point overloads of \tcode{to_string} and \tcode{to_wstring}.
274+
\rationale
275+
Prevent loss of information and improve consistency with other formatting
276+
facilities.
277+
\effect
278+
\tcode{to_string} and \tcode{to_wstring} function calls that take
279+
floating-point arguments may produce a different output.
280+
\begin{example}
281+
\begin{codeblock}
282+
auto s = std::to_string(1e-7); // \tcode{"1e-07"}
283+
// previously \tcode{"0.000000"} with \tcode{'.'} possibly
284+
// changed according to the global C locale
285+
\end{codeblock}
286+
\end{example}
287+
288288
\rSec2[diff.cpp23.depr]{\ref{depr}: compatibility features}
289289

290290
\nodiffref

0 commit comments

Comments
 (0)