use std::move

This commit is contained in:
Jeff 2018-02-19 10:45:02 -05:00
parent f876cc9079
commit b64878f4fa

View file

@ -32,7 +32,7 @@ namespace util
{
std::unique_lock<std::mutex> l(m_QueueMutex);
for (const auto& it: vec)
m_Queue.push (it);
m_Queue.push (std::move(it));
m_NonEmpty.notify_one ();
}
}