diff --git a/include/fmt/compile.h b/include/fmt/compile.h index 4504fceb..e9f347a5 100644 --- a/include/fmt/compile.h +++ b/include/fmt/compile.h @@ -534,10 +534,10 @@ FMT_INLINE std::basic_string format(const S&, constexpr auto compiled = detail::compile(S()); if constexpr (std::is_same, detail::unknown_format>()) { - return format(static_cast>(S()), + return ::fmt::format(static_cast>(S()), std::forward(args)...); } else { - return format(compiled, std::forward(args)...); + return ::fmt::format(compiled, std::forward(args)...); } } @@ -547,11 +547,11 @@ FMT_CONSTEXPR OutputIt format_to(OutputIt out, const S&, Args&&... args) { constexpr auto compiled = detail::compile(S()); if constexpr (std::is_same, detail::unknown_format>()) { - return format_to(out, + return ::fmt::format_to(out, static_cast>(S()), std::forward(args)...); } else { - return format_to(out, compiled, std::forward(args)...); + return ::fmt::format_to(out, compiled, std::forward(args)...); } } #endif @@ -560,7 +560,7 @@ template ::value)> format_to_n_result format_to_n(OutputIt out, size_t n, const S& format_str, Args&&... args) { - auto it = format_to(detail::truncating_iterator(out, n), format_str, + auto it = ::fmt::format_to(detail::truncating_iterator(out, n), format_str, std::forward(args)...); return {it.base(), it.count()}; } @@ -568,14 +568,14 @@ format_to_n_result format_to_n(OutputIt out, size_t n, template ::value)> size_t formatted_size(const S& format_str, const Args&... args) { - return format_to(detail::counting_iterator(), format_str, args...).count(); + return ::fmt::format_to(detail::counting_iterator(), format_str, args...).count(); } template ::value)> void print(std::FILE* f, const S& format_str, const Args&... args) { memory_buffer buffer; - format_to(std::back_inserter(buffer), format_str, args...); + ::fmt::format_to(std::back_inserter(buffer), format_str, args...); detail::print(f, {buffer.data(), buffer.size()}); }