From 163178eee1e3235c18fc9c5c035ac00634b71507 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Thu, 25 Sep 2014 07:08:25 -0700 Subject: [PATCH] Make print non-inline --- format.cc | 4 ++++ format.h | 4 +--- 2 files changed, 5 insertions(+), 3 deletions(-) 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