From: Mikko Rasa Date: Thu, 7 Feb 2008 15:23:57 +0000 (+0000) Subject: Mark the print functions inline X-Git-Tag: io-1.0~8 X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=08bdd0f3d597ec4e39c6eb4ba6f28e63ed95419f;p=libs%2Fcore.git Mark the print functions inline --- diff --git a/source/print.h b/source/print.h index 6fb7b4f..16f9225 100644 --- a/source/print.h +++ b/source/print.h @@ -18,27 +18,27 @@ namespace IO { Writes a string to an I/O object. Same as o.write(f). Provided for completeness with the other print functions. */ -unsigned print(Base &o, const std::string &f) +inline unsigned print(Base &o, const std::string &f) { return o.write(f); } template -unsigned print(Base &o, const std::string &f, A1 a1) +inline unsigned print(Base &o, const std::string &f, A1 a1) { return o.write(format(f, a1)); } template -unsigned print(Base &o, const std::string &f, A1 a1, A2 a2) +inline unsigned print(Base &o, const std::string &f, A1 a1, A2 a2) { return o.write(format(f, a1, a2)); } template -unsigned print(Base &o, const std::string &f, A1 a1, A2 a2, A3 a3) +inline unsigned print(Base &o, const std::string &f, A1 a1, A2 a2, A3 a3) { return o.write(format(f, a1, a2, a3)); } template -unsigned print(Base &o, const std::string &f, A1 a1, A2 a2, A3 a3, A4 a4) +inline unsigned print(Base &o, const std::string &f, A1 a1, A2 a2, A3 a3, A4 a4) { return o.write(format(f, a1, a2, a3, a4)); } template -unsigned print(Base &o, const std::string &f, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5) +inline unsigned print(Base &o, const std::string &f, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5) { return o.write(format(f, a1, a2, a3, a4, a5)); } } // namespace IO