Commit 68832679 authored by gabime's avatar gabime

Added const to circular_q empty() and full()

parent b88c7846
...@@ -71,12 +71,12 @@ public: ...@@ -71,12 +71,12 @@ public:
} }
} }
bool empty() bool empty() const
{ {
return tail_ == head_; return tail_ == head_;
} }
bool full() bool full() const
{ {
// head is ahead of the tail by 1 // head is ahead of the tail by 1
return ((tail_ + 1) % max_items_) == head_; return ((tail_ + 1) % max_items_) == head_;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment