From c5011181bb0f77fd73cac4bf0b6c9fe20eccedde Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Mon, 1 Oct 2018 14:27:43 +0300 Subject: [PATCH] Update log_msg.h --- include/spdlog/details/log_msg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/details/log_msg.h b/include/spdlog/details/log_msg.h index 3272dd5d..3894b0a4 100644 --- a/include/spdlog/details/log_msg.h +++ b/include/spdlog/details/log_msg.h @@ -39,7 +39,7 @@ struct log_msg log_clock::time_point time; size_t thread_id; fmt::memory_buffer raw; - size_t msg_id{0}; + mutable size_t msg_id{0}; // info about wrapping the formatted text with color mutable size_t color_range_start{0}; mutable size_t color_range_end{0};