diff --git a/format.cc b/format.cc index 5ec3f429..1297197b 100644 --- a/format.cc +++ b/format.cc @@ -1030,6 +1030,10 @@ void fmt::print(std::FILE *f, StringRef format_str, ArgList args) { std::fwrite(w.data(), 1, w.size(), f); } +void fmt::print(StringRef format_str, ArgList args) { + print(stdout, format_str, args); +} + void fmt::print(std::ostream &os, StringRef format_str, ArgList args) { Writer w; w.write(format_str, args); diff --git a/format.h b/format.h index d76ceae8..a1d10163 100644 --- a/format.h +++ b/format.h @@ -2049,9 +2049,7 @@ void print(std::FILE *f, StringRef format_str, ArgList args); print("Elapsed time: {0:.2f} seconds", 1.23); \endrst */ -inline void print(StringRef format_str, ArgList args) { - print(stdout, format_str, args); -} +void print(StringRef format_str, ArgList args); /** \rst