ソースを参照

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

Ben Wiederhake 2 年 前
コミット
67d9172885
1 ファイル変更2 行追加4 行削除
  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;