From eaf3037bdb17b63b86523d0449d63645f6c0a151 Mon Sep 17 00:00:00 2001 From: dummyunit Date: Tue, 1 Oct 2024 21:55:14 +0300 Subject: [PATCH] Fix -Wmissing-template-arg-list-after-template-kw issued by Clang 19 (#73) This warning is treated as error by default: https://releases.llvm.org/19.1.0/tools/clang/docs/DiagnosticsReference.html#wmissing-template-arg-list-after-template-kw So build breaks for all library consumers even when -Werror, -Wall, etc. are not used. --- include/atomic_queue/atomic_queue.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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