Skip to content

Commit c0873ad

Browse files
eisenwavetkoeppe
authored andcommitted
P3953R3 Rename std::runtime_format
1 parent c92ecdb commit c0873ad

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

source/support.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@
678678
#define @\defnlibxname{cpp_lib_filesystem}@ 201703L // also in \libheader{filesystem}
679679
#define @\defnlibxname{cpp_lib_flat_map}@ 202511L // also in \libheader{flat_map}
680680
#define @\defnlibxname{cpp_lib_flat_set}@ 202511L // also in \libheader{flat_set}
681-
#define @\defnlibxname{cpp_lib_format}@ 202311L // also in \libheader{format}
681+
#define @\defnlibxname{cpp_lib_format}@ 202603L // also in \libheader{format}
682682
#define @\defnlibxname{cpp_lib_format_path}@ 202506L // also in \libheader{filesystem}
683683
#define @\defnlibxname{cpp_lib_format_ranges}@ 202207L // also in \libheader{format}
684684
#define @\defnlibxname{cpp_lib_format_uchar}@ 202311L // also in \libheader{format}

source/text.tex

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5751,18 +5751,18 @@
57515751
template<class charT, class... Args>
57525752
struct basic_format_string;
57535753

5754-
template<class charT> struct @\exposid{runtime-format-string}@ { // \expos
5754+
template<class charT> struct @\exposid{dynamic-format-string}@ { // \expos
57555755
private:
57565756
basic_string_view<charT> @\exposid{str}@; // \expos
57575757
public:
5758-
constexpr @\exposid{runtime-format-string}@(basic_string_view<charT> s) noexcept : @\exposid{str}@(s) {}
5759-
@\exposid{runtime-format-string}@(const @\exposid{runtime-format-string}@&) = delete;
5760-
@\exposid{runtime-format-string}@& operator=(const @\exposid{runtime-format-string}@&) = delete;
5758+
constexpr @\exposid{dynamic-format-string}@(basic_string_view<charT> s) noexcept : @\exposid{str}@(s) {}
5759+
@\exposid{dynamic-format-string}@(const @\exposid{dynamic-format-string}@&) = delete;
5760+
@\exposid{dynamic-format-string}@& operator=(const @\exposid{dynamic-format-string}@&) = delete;
57615761
};
5762-
constexpr @\exposid{runtime-format-string}@<char>
5763-
runtime_format(string_view fmt) noexcept { return fmt; }
5764-
constexpr @\exposid{runtime-format-string}@<wchar_t>
5765-
runtime_format(wstring_view fmt) noexcept { return fmt; }
5762+
constexpr @\exposid{dynamic-format-string}@<char>
5763+
dynamic_format(string_view fmt) noexcept { return fmt; }
5764+
constexpr @\exposid{dynamic-format-string}@<wchar_t>
5765+
dynamic_format(wstring_view fmt) noexcept { return fmt; }
57665766

57675767
template<class... Args>
57685768
using @\libglobal{format_string}@ = basic_format_string<char, type_identity_t<Args>...>;
@@ -6692,7 +6692,7 @@
66926692

66936693
public:
66946694
template<class T> consteval basic_format_string(const T& s);
6695-
constexpr basic_format_string(@\exposid{runtime-format-string}@<charT> s) noexcept : str(s.@\exposid{str}@) {}
6695+
constexpr basic_format_string(@\exposid{dynamic-format-string}@<charT> s) noexcept : str(s.@\exposid{str}@) {}
66966696

66976697
constexpr basic_string_view<charT> get() const noexcept { return @\exposid{str}@; }
66986698
};

0 commit comments

Comments
 (0)