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