From c203995ef37eacf6fc07ce54ed1e0c2dc34450d0 Mon Sep 17 00:00:00 2001 From: 372046933 Date: Fri, 26 Apr 2024 12:23:40 +0800 Subject: [PATCH] Fix compile --- cqueue.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cqueue.hpp b/cqueue.hpp index 059cade..6f25810 100644 --- a/cqueue.hpp +++ b/cqueue.hpp @@ -583,7 +583,7 @@ constexpr auto gto::cqueue::emplace_front(Args&&... args) -> refer * @exception std::out_of_range No elements to pop. */ template -constexpr gto::cqueue::value_type gto::cqueue::pop_front() { +constexpr typename gto::cqueue::value_type gto::cqueue::pop_front() { value_type ret{std::move(front())}; allocator_traits::destroy(mAllocator, mData + mFront); mFront = getUncheckedIndex(1); @@ -596,7 +596,7 @@ constexpr gto::cqueue::value_type gto::cqueue::pop_f * @exception std::out_of_range No elements to pop. */ template -constexpr gto::cqueue::value_type gto::cqueue::pop_back() { +constexpr typename gto::cqueue::value_type gto::cqueue::pop_back() { value_type ret{std::move(back())}; size_type index = getUncheckedIndex(mLength - 1); allocator_traits::destroy(mAllocator, mData + index);