Browse Source

LibIPC: Fix HashMap detection in case of non-trivial traits

Ben Wiederhake 2 years ago
parent
commit
67d9172885
1 changed files with 2 additions and 4 deletions
  1. 2 4
      Userland/Libraries/LibIPC/Concepts.h

+ 2 - 4
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;