Upstream: yes Url: https://github.com/mmatyas/pegasus-frontend/pull/589 From 71c4720ef26fbdd87b43e5c31eb604a92d1ad612 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1ty=C3=A1s=20Mustoha?= Date: Sun, 29 Dec 2019 00:46:15 +0100 Subject: [PATCH] Fixed a compile error when using Qt 5.14, related to string hashes --- src/backend/utils/HashMap.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/backend/utils/HashMap.h b/src/backend/utils/HashMap.h index 3a17305f..21f558e1 100644 --- a/src/backend/utils/HashMap.h +++ b/src/backend/utils/HashMap.h @@ -26,6 +26,7 @@ template > using HashMap = std::unordered_map; +#if (QT_VERSION < QT_VERSION_CHECK(5, 14, 0)) // hash for strings namespace std { template<> struct hash { @@ -39,6 +40,7 @@ namespace std { } }; } +#endif // hash for enum classes struct EnumHash {