Skip to content

[diff.cpp23.strings] Move Clause 27 changes after Clause 23 changes #7924

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 20, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions source/compatibility.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -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
Expand Down