From 076ca8c4071b99c59e886c33a2a034fba12fbcaf Mon Sep 17 00:00:00 2001 From: Eisenwave Date: Sat, 28 Mar 2026 20:27:24 +0100 Subject: [PATCH 1/2] P3953R3 Rename std::runtime_format --- source/support.tex | 2 +- source/text.tex | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/source/support.tex b/source/support.tex index 6d83f3e90c..5fe180a0f8 100644 --- a/source/support.tex +++ b/source/support.tex @@ -678,7 +678,7 @@ #define @\defnlibxname{cpp_lib_filesystem}@ 201703L // also in \libheader{filesystem} #define @\defnlibxname{cpp_lib_flat_map}@ 202511L // also in \libheader{flat_map} #define @\defnlibxname{cpp_lib_flat_set}@ 202511L // also in \libheader{flat_set} -#define @\defnlibxname{cpp_lib_format}@ 202311L // also in \libheader{format} +#define @\defnlibxname{cpp_lib_format}@ 202603L // also in \libheader{format} #define @\defnlibxname{cpp_lib_format_path}@ 202506L // also in \libheader{filesystem} #define @\defnlibxname{cpp_lib_format_ranges}@ 202207L // also in \libheader{format} #define @\defnlibxname{cpp_lib_format_uchar}@ 202311L // also in \libheader{format} diff --git a/source/text.tex b/source/text.tex index df0dc1baea..ae8951ee4d 100644 --- a/source/text.tex +++ b/source/text.tex @@ -5751,18 +5751,18 @@ template struct basic_format_string; - template struct @\exposid{runtime-format-string}@ { // \expos + template struct @\exposid{dynamic-format-string}@ { // \expos private: basic_string_view @\exposid{str}@; // \expos public: - constexpr @\exposid{runtime-format-string}@(basic_string_view s) noexcept : @\exposid{str}@(s) {} - @\exposid{runtime-format-string}@(const @\exposid{runtime-format-string}@&) = delete; - @\exposid{runtime-format-string}@& operator=(const @\exposid{runtime-format-string}@&) = delete; + constexpr @\exposid{dynamic-format-string}@(basic_string_view s) noexcept : @\exposid{str}@(s) {} + @\exposid{dynamic-format-string}@(const @\exposid{dynamic-format-string}@&) = delete; + @\exposid{dynamic-format-string}@& operator=(const @\exposid{dynamic-format-string}@&) = delete; }; - constexpr @\exposid{runtime-format-string}@ - runtime_format(string_view fmt) noexcept { return fmt; } - constexpr @\exposid{runtime-format-string}@ - runtime_format(wstring_view fmt) noexcept { return fmt; } + constexpr @\exposid{dynamic-format-string}@ + dynamic_format(string_view fmt) noexcept { return fmt; } + constexpr @\exposid{dynamic-format-string}@ + dynamic_format(wstring_view fmt) noexcept { return fmt; } template using @\libglobal{format_string}@ = basic_format_string...>; @@ -6678,7 +6678,7 @@ public: template consteval basic_format_string(const T& s); - constexpr basic_format_string(@\exposid{runtime-format-string}@ s) noexcept : str(s.@\exposid{str}@) {} + constexpr basic_format_string(@\exposid{dynamic-format-string}@ s) noexcept : str(s.@\exposid{str}@) {} constexpr basic_string_view get() const noexcept { return @\exposid{str}@; } }; From 8f1211f5edb6237345c423a46e25a40e7e17e009 Mon Sep 17 00:00:00 2001 From: Eisenwave Date: Sat, 28 Mar 2026 20:29:08 +0100 Subject: [PATCH 2/2] [print.fun] Rename "runtime_format" to "dynamic_format" --- source/iostreams.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/iostreams.tex b/source/iostreams.tex index 2ec4c6445e..ae467902c7 100644 --- a/source/iostreams.tex +++ b/source/iostreams.tex @@ -7801,7 +7801,7 @@ \effects Equivalent to: \begin{codeblock} -print(stream, runtime_format(string(fmt.get()) + '\n'), std::forward(args)...); +print(stream, dynamic_format(string(fmt.get()) + '\n'), std::forward(args)...); \end{codeblock} \end{itemdescr}