diff --git a/include/fmt/printf.h b/include/fmt/printf.h index 25e93bb31d21..554715e9bb2b 100644 --- a/include/fmt/printf.h +++ b/include/fmt/printf.h @@ -599,7 +599,7 @@ inline auto vsprintf( basic_format_args>> args) -> std::basic_string { auto buf = basic_memory_buffer(); - vprintf(buf, detail::to_string_view(fmt), args); + detail::vprintf(buf, detail::to_string_view(fmt), args); return to_string(buf); } @@ -626,7 +626,7 @@ inline auto vfprintf( basic_format_args>> args) -> int { auto buf = basic_memory_buffer(); - vprintf(buf, detail::to_string_view(fmt), args); + detail::vprintf(buf, detail::to_string_view(fmt), args); size_t size = buf.size(); return std::fwrite(buf.data(), sizeof(Char), size, f) < size ? -1