Add basic_format_string::get()

This commit is contained in:
huangqinjin 2022-09-22 22:01:43 +08:00 committed by Victor Zverovich
parent 0b5cb18b71
commit 48f525d025

View File

@ -3180,6 +3180,7 @@ template <typename Char, typename... Args> class basic_format_string {
basic_format_string(basic_runtime<Char> r) : str_(r.str) {} basic_format_string(basic_runtime<Char> r) : str_(r.str) {}
FMT_INLINE operator basic_string_view<Char>() const { return str_; } FMT_INLINE operator basic_string_view<Char>() const { return str_; }
FMT_INLINE basic_string_view<Char> get() const { return str_; }
}; };
#if FMT_GCC_VERSION && FMT_GCC_VERSION < 409 #if FMT_GCC_VERSION && FMT_GCC_VERSION < 409