diff --git a/include/spdlog/logger.h b/include/spdlog/logger.h index 8ee2c6c2..cab59839 100644 --- a/include/spdlog/logger.h +++ b/include/spdlog/logger.h @@ -180,7 +180,7 @@ private: // common implementation for after templated public api has been resolved to format string and // args template - void log_with_format_(source_loc loc, const level lvl, const format_string_t &format_string, const Args &...args) { + void log_with_format_(source_loc loc, const level lvl, const format_string_t &format_string, Args &&...args) { assert(should_log(lvl)); try { memory_buf_t buf;