diff --git a/include/spdlog/details/circular_q.h b/include/spdlog/details/circular_q.h index 1f2712e7..e4fd5fd4 100644 --- a/include/spdlog/details/circular_q.h +++ b/include/spdlog/details/circular_q.h @@ -121,6 +121,11 @@ public: return overrun_counter_; } + void reset_overrun_counter() + { + overrun_counter_ = 0; + } + private: // copy from other&& and reset it to disabled state void copy_moveable(circular_q &&other) SPDLOG_NOEXCEPT