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

This commit is contained in:
Ben Wiederhake 2023-05-15 11:17:31 +02:00 committed by Andreas Kling
commit 67d9172885
Notes: sideshowbarker 2024-07-17 08:45:34 +09:00

View file

@ -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;