use of class template requires template argument list

It should be:

template<class T>
bool MutableQueue<T>::empty() const
{
    scoped_lock lock(mutex);
    return queue.empty();
}

And if your code is that short, just inline it, as you can’t separate the implementation and header of a template class anyway.

Leave a Comment