From 48f525d025cadbedce0b2288ff8e19b6877341e4 Mon Sep 17 00:00:00 2001 From: huangqinjin Date: Thu, 22 Sep 2022 22:01:43 +0800 Subject: [PATCH] Add basic_format_string::get() --- include/fmt/core.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/fmt/core.h b/include/fmt/core.h index 549f948f..ca22be42 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -3180,6 +3180,7 @@ template class basic_format_string { basic_format_string(basic_runtime r) : str_(r.str) {} FMT_INLINE operator basic_string_view() const { return str_; } + FMT_INLINE basic_string_view get() const { return str_; } }; #if FMT_GCC_VERSION && FMT_GCC_VERSION < 409