diff options
author | Ben Wiederhake <BenWiederhake.GitHub@gmx.de> | 2023-05-15 11:17:31 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-05-21 07:53:45 +0200 |
commit | 67d9172885be49185d76f1a6a96ddb506f05f6b5 (patch) | |
tree | 70191bfe142d194e8f519859111161ae2fefb4a3 /Userland/Libraries/LibIPC/Concepts.h | |
parent | 4e101d1fa20b340ee92bda592af0d8ec0db0c820 (diff) | |
download | serenity-67d9172885be49185d76f1a6a96ddb506f05f6b5.zip |
LibIPC: Fix HashMap detection in case of non-trivial traits
Diffstat (limited to 'Userland/Libraries/LibIPC/Concepts.h')
-rw-r--r-- | Userland/Libraries/LibIPC/Concepts.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Userland/Libraries/LibIPC/Concepts.h b/Userland/Libraries/LibIPC/Concepts.h index 99746e00c8..5afab8c923 100644 --- a/Userland/Libraries/LibIPC/Concepts.h +++ b/Userland/Libraries/LibIPC/Concepts.h @@ -27,10 +27,8 @@ namespace Detail { template<typename T> constexpr inline bool IsHashMap = false; -template<typename K, typename V> -constexpr inline bool IsHashMap<HashMap<K, V>> = true; -template<typename K, typename V> -constexpr inline bool IsHashMap<OrderedHashMap<K, V>> = true; +template<typename K, typename V, typename KeyTraits, typename ValueTraits, bool IsOrdered> +constexpr inline bool IsHashMap<HashMap<K, V, KeyTraits, ValueTraits, IsOrdered>> = true; template<typename T> constexpr inline bool IsOptional = false; |