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);