mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-29 01:29:35 +08:00
Return true from details::circular_q::full() if capacity is 0
This commit is contained in:
@@ -116,7 +116,7 @@ public:
|
|||||||
{
|
{
|
||||||
return ((tail_ + 1) % max_items_) == head_;
|
return ((tail_ + 1) % max_items_) == head_;
|
||||||
}
|
}
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
[[nodiscard]] size_t overrun_counter() const
|
[[nodiscard]] size_t overrun_counter() const
|
||||||
|
Reference in New Issue
Block a user