From f7a2699ac0cbb2824862439a72f23013436484de Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Wed, 14 May 2025 00:23:11 +0200 Subject: Add and use copy_const_t --- asl/containers/intrusive_list.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'asl/containers/intrusive_list.hpp') diff --git a/asl/containers/intrusive_list.hpp b/asl/containers/intrusive_list.hpp index 81816ec..5ce69aa 100644 --- a/asl/containers/intrusive_list.hpp +++ b/asl/containers/intrusive_list.hpp @@ -82,13 +82,13 @@ public: constexpr auto front(this auto&& self) { - using return_type = un_ref_t>*; + using return_type = copy_const_t, T>*; return return_type{ self.m_head }; } constexpr auto back(this auto&& self) { - using return_type = un_ref_t>*; + using return_type = copy_const_t, T>*; return return_type{ self.m_head != nullptr ? self.m_head->m_prev : nullptr }; } -- cgit