From c7b1bc0b0a0aa77aad5613fdb5909587b57005dd Mon Sep 17 00:00:00 2001 From: lisyarus Date: Sun, 17 Aug 2025 21:09:31 +0300 Subject: [PATCH] Fix throwing key_error in util::hash_table for heterogeneous keys --- libs/util/include/psemek/util/hash_table.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/util/include/psemek/util/hash_table.hpp b/libs/util/include/psemek/util/hash_table.hpp index f1f13951..590e903a 100644 --- a/libs/util/include/psemek/util/hash_table.hpp +++ b/libs/util/include/psemek/util/hash_table.hpp @@ -655,7 +655,7 @@ namespace psemek::util { auto it = find(key); if (it == end()) - throw util::key_error(key); + throw util::key_error(Key(key)); return it->second; } @@ -672,7 +672,7 @@ namespace psemek::util { auto it = find(key); if (it == end()) - throw util::key_error(key); + throw util::key_error(Key(key)); return it->second; }