From 40ffca95c0b811f62c190ef3dd90a2b449c171a2 Mon Sep 17 00:00:00 2001 From: gabime Date: Sat, 7 Dec 2024 20:58:42 +0200 Subject: [PATCH] Fixed compile in c++20 --- include/spdlog/logger.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;