From ffe29a92f43045f555b2716c85f755949ecef02c Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 24 Aug 2019 09:04:03 -0700 Subject: [PATCH] Get rid of internal::compile --- include/fmt/compile.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/include/fmt/compile.h b/include/fmt/compile.h index dab0443c..1c7c83f9 100644 --- a/include/fmt/compile.h +++ b/include/fmt/compile.h @@ -549,16 +549,9 @@ template using prepared_format_t = typename basic_prepared_format, Args...>::type; - -template -auto compile(S format_str) -> - typename internal::preparator::prepared_format_type { - return internal::preparator::prepare(std::move(format_str)); -} } // namespace internal #if FMT_USE_CONSTEXPR - template ::value)> FMT_CONSTEXPR auto compile(S format_str) { @@ -572,7 +565,8 @@ auto compile(const Char (&format_str)[N]) -> typename internal::preparator, Args...>::prepared_format_type { const auto view = basic_string_view(format_str, N - 1); - return internal::compile(internal::to_runtime_format(view)); + return internal::preparator, Args...>::prepare( + internal::to_runtime_format(view)); } template