diff options
Diffstat (limited to 'utils.h')
-rw-r--r-- | utils.h | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -0,0 +1,16 @@ +#ifndef UTILS_H +#define UTILS_H + +#include <functional> +#include <QHash> +#include <QString> + +namespace std { + template<> struct hash<QString> { + std::size_t operator()(const QString& s) const noexcept { + return (size_t) qHash(s); + } + }; +} + +#endif |