From ee4d4c7fd0de0d197a74ec9383ed1b0e8706856a Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 14 Jun 2020 11:38:39 -0700 Subject: [PATCH] Inline compiled format --- include/fmt/compile.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/fmt/compile.h b/include/fmt/compile.h index 9ec15474..c85bf7c3 100644 --- a/include/fmt/compile.h +++ b/include/fmt/compile.h @@ -510,7 +510,8 @@ constexpr auto compile(S format_str) { template ::value)> -std::basic_string format(const CompiledFormat& cf, const Args&... args) { +FMT_INLINE std::basic_string format(const CompiledFormat& cf, + const Args&... args) { basic_memory_buffer buffer; detail::buffer& base = buffer; cf.format(std::back_inserter(base), args...);