Skip to content

Commit

Permalink
Merge pull request #3 from 372046933/fix_compile
Browse files Browse the repository at this point in the history
Fix compile
  • Loading branch information
torrentg authored Apr 26, 2024
2 parents a74b1e7 + c203995 commit 5332e64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cqueue.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ constexpr auto gto::cqueue<T, Allocator>::emplace_front(Args&&... args) -> refer
* @exception std::out_of_range No elements to pop.
*/
template<std::copyable T, typename Allocator>
constexpr gto::cqueue<T, Allocator>::value_type gto::cqueue<T, Allocator>::pop_front() {
constexpr typename gto::cqueue<T, Allocator>::value_type gto::cqueue<T, Allocator>::pop_front() {
value_type ret{std::move(front())};
allocator_traits::destroy(mAllocator, mData + mFront);
mFront = getUncheckedIndex(1);
Expand All @@ -596,7 +596,7 @@ constexpr gto::cqueue<T, Allocator>::value_type gto::cqueue<T, Allocator>::pop_f
* @exception std::out_of_range No elements to pop.
*/
template<std::copyable T, typename Allocator>
constexpr gto::cqueue<T, Allocator>::value_type gto::cqueue<T, Allocator>::pop_back() {
constexpr typename gto::cqueue<T, Allocator>::value_type gto::cqueue<T, Allocator>::pop_back() {
value_type ret{std::move(back())};
size_type index = getUncheckedIndex(mLength - 1);
allocator_traits::destroy(mAllocator, mData + index);
Expand Down

0 comments on commit 5332e64

Please sign in to comment.