log: forward logging arguments

This commit is contained in:
Danny Robson 2016-04-05 10:48:08 +10:00
parent 60b65a9a24
commit f644c5dec4
3 changed files with 3 additions and 2 deletions

View File

@ -17,6 +17,7 @@
#include "./debug.hpp"
#include "./except.hpp"
#include "./log.hpp"
#include <windows.h>

View File

@ -62,7 +62,7 @@ namespace util {
void log (level_t, const std::string &msg);
template <typename ...tail>
void log (level_t, const std::string &format, tail ..._tail);
void log (level_t, const std::string &format, tail&& ..._tail);
//-------------------------------------------------------------------------

View File

@ -26,7 +26,7 @@
namespace util {
template <typename ...tail>
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> (_tail)...));
}