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/hash_map.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'asl/containers/hash_map.hpp') diff --git a/asl/containers/hash_map.hpp b/asl/containers/hash_map.hpp index dc140eb..a6d72dd 100644 --- a/asl/containers/hash_map.hpp +++ b/asl/containers/hash_map.hpp @@ -147,7 +147,7 @@ public: auto get(this auto&& self, const U& value) requires key_hasher && key_comparator { - using return_type = un_ref_t>*; + using return_type = copy_const_t, V>*; isize_t index = self.find_slot_lookup(value); if (index >= 0) { -- cgit