mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-29 01:29:35 +08:00
added move support to pop queque
This commit is contained in:
@@ -75,7 +75,7 @@ public:
|
||||
if (!item_pushed_cond_.wait_until(ul, clock::now() + timeout, [this]() { return !this->q_.empty(); }))
|
||||
return false;
|
||||
}
|
||||
item = q_.front();
|
||||
item = std::move(q_.front());
|
||||
q_.pop();
|
||||
if (q_.size() >= max_size_ - 1)
|
||||
{
|
||||
|
Reference in New Issue
Block a user