From f644c5dec4020358e5007f958c71eca798805489 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Tue, 5 Apr 2016 10:48:08 +1000 Subject: [PATCH] log: forward logging arguments --- debug_win32.cpp | 1 + log.hpp | 2 +- log.ipp | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/debug_win32.cpp b/debug_win32.cpp index 63a8ff58..f36f2802 100644 --- a/debug_win32.cpp +++ b/debug_win32.cpp @@ -17,6 +17,7 @@ #include "./debug.hpp" #include "./except.hpp" +#include "./log.hpp" #include diff --git a/log.hpp b/log.hpp index 505df6d3..9005772d 100644 --- a/log.hpp +++ b/log.hpp @@ -62,7 +62,7 @@ namespace util { void log (level_t, const std::string &msg); template - void log (level_t, const std::string &format, tail ..._tail); + void log (level_t, const std::string &format, tail&& ..._tail); //------------------------------------------------------------------------- diff --git a/log.ipp b/log.ipp index 2ddd311e..6afa260f 100644 --- a/log.ipp +++ b/log.ipp @@ -26,7 +26,7 @@ namespace util { template void - log (level_t l, const std::string &format, tail ..._tail) + log (level_t l, const std::string &format, tail&& ..._tail) { log (l, format::render (format, std::forward (_tail)...)); }