File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 631
631
#define @\defnlibxname {cpp_lib_filesystem}@ 201703L // also in \libheader {filesystem}
632
632
#define @\defnlibxname {cpp_lib_flat_map}@ 202207L // also in \libheader {flat_map}
633
633
#define @\defnlibxname {cpp_lib_flat_set}@ 202207L // also in \libheader {flat_set}
634
- #define @\defnlibxname {cpp_lib_format}@ 202306L // also in \libheader {format}
634
+ #define @\defnlibxname {cpp_lib_format}@ 202311L // also in \libheader {format}
635
635
#define @\defnlibxname {cpp_lib_format_ranges}@ 202207L // also in \libheader {format}
636
636
#define @\defnlibxname {cpp_lib_formatters}@ 202302L // also in \libheader {stacktrace}, \libheader {thread}
637
637
#define @\defnlibxname {cpp_lib_forward_like}@ 202207L // freestanding, also in \libheader {utility}
Original file line number Diff line number Diff line change 15528
15528
template<class charT, class... Args>
15529
15529
struct basic_format_string;
15530
15530
15531
+ template<class charT> struct @\exposid{runtime-format-string}@ { // \expos
15532
+ private:
15533
+ basic_string_view<charT> @\exposid{str}@; // \expos
15534
+ public:
15535
+ @\exposid{runtime-format-string}@(basic_string_view<charT> s) noexcept : @\exposid{str}@(s) {}
15536
+ @\exposid{runtime-format-string}@(const @\exposid{runtime-format-string}@&) = delete;
15537
+ const @\exposid{runtime-format-string}@& operator=(const @\exposid{runtime-format-string}@&) = delete;
15538
+ };
15539
+ @\exposid{runtime-format-string}@<char> runtime_format(string_view fmt) noexcept { return fmt; }
15540
+ @\exposid{runtime-format-string}@<wchar_t> runtime_format(wstring_view fmt) noexcept { return fmt; }
15541
+
15531
15542
template<class... Args>
15532
15543
using @\libglobal{format_string}@ = basic_format_string<char, type_identity_t<Args>...>;
15533
15544
template<class... Args>
16430
16441
16431
16442
public:
16432
16443
template<class T> consteval basic_format_string(const T& s);
16444
+ basic_format_string(@\exposid{runtime-format-string}@<charT> s) noexcept : str(s.@\exposid{str}@) {}
16433
16445
16434
16446
constexpr basic_string_view<charT> get() const noexcept { return @\exposid{str}@; }
16435
16447
};
You can’t perform that action at this time.
0 commit comments