From 590749e8be5771683f80908b2d49bf8086bcad2a Mon Sep 17 00:00:00 2001 From: gabime Date: Tue, 17 Sep 2019 12:03:54 +0300 Subject: [PATCH] Avoid un necessary move when popping circular_q --- include/spdlog/details/circular_q.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/details/circular_q.h b/include/spdlog/details/circular_q.h index 5d15c8ab..484666f1 100644 --- a/include/spdlog/details/circular_q.h +++ b/include/spdlog/details/circular_q.h @@ -86,7 +86,7 @@ public: { return ((tail_ + 1) % max_items_) == head_; } - return true; + return false; } size_t overrun_counter() const