diff --git a/include/fmt/printf.h b/include/fmt/printf.h index a6275ce2..65771c09 100644 --- a/include/fmt/printf.h +++ b/include/fmt/printf.h @@ -267,18 +267,8 @@ void vprintf(buffer& buf, basic_string_view format, basic_format_args args) { Context(buffer_appender(buf), format, args).format(); } - FMT_END_DETAIL_NAMESPACE -// For printing into memory_buffer. -template -FMT_DEPRECATED void printf(detail::buffer& buf, - basic_string_view format, - basic_format_args args) { - return detail::vprintf(buf, format, args); -} -using detail::vprintf; - template struct printf_formatter { printf_formatter() = delete; @@ -649,7 +639,8 @@ inline auto vfprintf( template > inline auto fprintf(std::FILE* f, const S& fmt, const T&... args) -> int { using context = basic_printf_context_t; - return vfprintf(f, to_string_view(fmt), fmt::make_format_args(args...)); + return vfprintf(f, to_string_view(fmt), + fmt::make_format_args(args...)); } template > @@ -671,8 +662,9 @@ inline auto vprintf( */ template ::value)> inline auto printf(const S& fmt, const T&... args) -> int { - return vprintf(to_string_view(fmt), - fmt::make_format_args>>(args...)); + return vprintf( + to_string_view(fmt), + fmt::make_format_args>>(args...)); } template >