File tree Expand file tree Collapse file tree 1 file changed +19
-19
lines changed Expand file tree Collapse file tree 1 file changed +19
-19
lines changed Original file line number Diff line number Diff line change 240240\tcode {trivially_relocatable_if_eligible} as macros is invalid
241241in this revision of \Cpp {}.
242242
243- \rSec 2[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\rSec 2[diff.cpp23.containers]{\ref {containers }: containers library}
263244
264245\diffref {span.overview }
285266\end {codeblock }
286267\end {example }
287268
269+ \rSec 2[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\rSec 2[diff.cpp23.depr]{\ref {depr }: compatibility features}
289289
290290\nodiffref
You can’t perform that action at this time.
0 commit comments