disabled hash<QString> for Qt 5.14
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
namespace std {
|
namespace std {
|
||||||
|
|
||||||
|
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
|
||||||
template <>
|
template <>
|
||||||
struct hash<QString> {
|
struct hash<QString> {
|
||||||
std::size_t operator()(const QString &s) const
|
std::size_t operator()(const QString &s) const
|
||||||
@@ -12,5 +13,6 @@ struct hash<QString> {
|
|||||||
return qHash(s);
|
return qHash(s);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
} // namespace std
|
} // namespace std
|
||||||
|
|||||||
Reference in New Issue
Block a user