diff options
Diffstat (limited to 'compat/qhash.hpp')
-rw-r--r-- | compat/qhash.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compat/qhash.hpp b/compat/qhash.hpp index 7d0f27ba..b92e4e55 100644 --- a/compat/qhash.hpp +++ b/compat/qhash.hpp @@ -6,10 +6,12 @@ #if QT_VERSION < QT_VERSION_CHECK(5, 14, 0) +#include <cstdlib> + namespace std { template<> struct hash<QString> { - unsigned operator()(const QString& value) const + std::size_t operator()(const QString& value) const noexcept { return qHash(value); } |