mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 09:32:06 +00:00
ConcurrentBoundedQueue: fix check
This commit is contained in:
parent
f258de68a8
commit
49318b6cc5
@ -53,7 +53,7 @@ public:
|
||||
fill_count.wait();
|
||||
{
|
||||
Poco::ScopedLock<Poco::FastMutex> lock(mutex);
|
||||
if (std::is_nothrow_move_constructible<T>::value)
|
||||
if (std::is_nothrow_move_assignable<T>::value)
|
||||
x = std::move(queue.front());
|
||||
else
|
||||
x = queue.front();
|
||||
@ -97,7 +97,7 @@ public:
|
||||
{
|
||||
{
|
||||
Poco::ScopedLock<Poco::FastMutex> lock(mutex);
|
||||
if (std::is_nothrow_move_constructible<T>::value)
|
||||
if (std::is_nothrow_move_assignable<T>::value)
|
||||
x = std::move(queue.front());
|
||||
else
|
||||
x = queue.front();
|
||||
|
Loading…
Reference in New Issue
Block a user