diff --git a/include/spdlog/sinks/base_sink.h b/include/spdlog/sinks/base_sink.h index 04cc6883..5b60dcc9 100644 --- a/include/spdlog/sinks/base_sink.h +++ b/include/spdlog/sinks/base_sink.h @@ -36,7 +36,7 @@ public: protected: // sink formatter std::unique_ptr formatter_; - Mutex mutex_; + mutable Mutex mutex_; virtual void sink_it_(const details::log_msg &msg) = 0; virtual void flush_() = 0;