diff --git a/libxisf.cpp b/libxisf.cpp index f467995..08c8a28 100644 --- a/libxisf.cpp +++ b/libxisf.cpp @@ -30,6 +30,7 @@ #define STRING_ENUM(e) {#e, e} +#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0) template<> struct std::hash { size_t operator()(const QString &string) const @@ -37,6 +38,7 @@ template<> struct std::hash return std::hash{}(string.toStdString()); } }; +#endif namespace LibXISF {