summaryrefslogtreecommitdiffhomepage
path: root/compat/qhash.hpp
diff options
context:
space:
mode:
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);