diff --git a/include/spdlog/logger.h b/include/spdlog/logger.h index 05675035..efb407c3 100644 --- a/include/spdlog/logger.h +++ b/include/spdlog/logger.h @@ -170,7 +170,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, Args &&...args) { + void log_with_format_(const source_loc &loc, const level lvl, const format_string_t &format_string, Args &&...args) { assert(should_log(lvl)); try { memory_buf_t buf;