1
0
Fork 0
mirror of https://github.com/gwm17/Daqromancy.git synced 2024-11-22 10:58:49 -05:00

Fix an annoying compiler error for MacOS in ThreadSafeQueue

This commit is contained in:
Gordon McCann 2022-10-06 22:33:18 -04:00
parent 344bfd8809
commit 275c19a8b1

View File

@ -79,13 +79,13 @@ namespace Daqromancy {
//For iterator loops, need begin()/end() idiom
std::deque<T>::iterator begin()
typename std::deque<T>::iterator begin()
{
std::scoped_lock<std::mutex> guard(m_queueMutex);
return m_queue.begin();
}
std::deque<T>::iterator end()
typename std::deque<T>::iterator end()
{
std::scoped_lock<std::mutex> guard(m_queueMutex);
return m_queue.end();