Return true from details::circular_q::full() if capacity is 0

This commit is contained in:
gabime 2023-09-01 14:30:42 +03:00
parent a8b74096b2
commit 55f84d458b

View File

@ -116,7 +116,7 @@ public:
{
return ((tail_ + 1) % max_items_) == head_;
}
return false;
return true;
}
[[nodiscard]] size_t overrun_counter() const