diff --git a/include/spdlog/sinks/base_sink.h b/include/spdlog/sinks/base_sink.h index bf5072f88..0647f0c46 100644 --- a/include/spdlog/sinks/base_sink.h +++ b/include/spdlog/sinks/base_sink.h @@ -37,7 +37,7 @@ class base_sink : public sink 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;