diff --git a/include/atomic_queue/atomic_queue.h b/include/atomic_queue/atomic_queue.h index 904e257..e4eeabd 100644 --- a/include/atomic_queue/atomic_queue.h +++ b/include/atomic_queue/atomic_queue.h @@ -404,13 +404,13 @@ class AtomicQueue2 : public AtomicQueueCommon(tail % size_); - return Base::template do_pop_any(states_[index], elements_[index]); + return Base::do_pop_any(states_[index], elements_[index]); } template void do_push(U&& element, unsigned head) noexcept { unsigned index = details::remap_index(head % size_); - Base::template do_push_any(std::forward(element), states_[index], elements_[index]); + Base::do_push_any(std::forward(element), states_[index], elements_[index]); } public: @@ -535,13 +535,13 @@ class AtomicQueueB2 : private std::allocator_traits::template rebind_alloc(tail & (size_ - 1)); - return Base::template do_pop_any(states_[index], elements_[index]); + return Base::do_pop_any(states_[index], elements_[index]); } template void do_push(U&& element, unsigned head) noexcept { unsigned index = details::remap_index(head & (size_ - 1)); - Base::template do_push_any(std::forward(element), states_[index], elements_[index]); + Base::do_push_any(std::forward(element), states_[index], elements_[index]); } template