summaryrefslogtreecommitdiff
path: root/asl/containers/intrusive_list.hpp
diff options
context:
space:
mode:
authorSteven Le Rouzic <steven.lerouzic@gmail.com>2025-05-14 00:23:11 +0200
committerSteven Le Rouzic <steven.lerouzic@gmail.com>2025-05-14 00:41:51 +0200
commitf7a2699ac0cbb2824862439a72f23013436484de (patch)
tree8e8c63332b8b4ae188a3f41391cadf16145bbed5 /asl/containers/intrusive_list.hpp
parent088e03708afe4145a1903f0b20c53cab1899ad50 (diff)
Add and use copy_const_t
Diffstat (limited to 'asl/containers/intrusive_list.hpp')
-rw-r--r--asl/containers/intrusive_list.hpp4
1 files changed, 2 insertions, 2 deletions
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<copy_cref_t<decltype(self), T>>*;
+ using return_type = copy_const_t<un_ref_t<decltype(self)>, T>*;
return return_type{ self.m_head };
}
constexpr auto back(this auto&& self)
{
- using return_type = un_ref_t<copy_cref_t<decltype(self), T>>*;
+ using return_type = copy_const_t<un_ref_t<decltype(self)>, T>*;
return return_type{ self.m_head != nullptr ? self.m_head->m_prev : nullptr };
}