summaryrefslogtreecommitdiffhomepage
path: root/compat/qhash.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2020-01-17 14:17:12 +0100
committerStanislaw Halik <sthalik@misaki.pl>2020-01-17 14:17:12 +0100
commit784b40b4974533742c6607b3f7281c6e998a5bb3 (patch)
tree0c2f51ae6d3e8365ce1c3da0fd7525fe3a1fa7ad /compat/qhash.hpp
parentfde755414529f2d700317063bbf55242aa24dde0 (diff)
try fix build
Diffstat (limited to 'compat/qhash.hpp')
-rw-r--r--compat/qhash.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/compat/qhash.hpp b/compat/qhash.hpp
index b92e4e55..ae7ada6a 100644
--- a/compat/qhash.hpp
+++ b/compat/qhash.hpp
@@ -1,5 +1,7 @@
#pragma once
+#include <functional>
+
#include <QtGlobal>
#include <QString>
#include <QHashFunctions>
@@ -11,6 +13,9 @@
namespace std {
template<> struct hash<QString>
{
+ using argument_type = QString;
+ using result_type = std::size_t;
+
std::size_t operator()(const QString& value) const noexcept
{
return qHash(value);