minor change to make code more portable

This commit is contained in:
Niels committed 2015-02-16 22:54:07 +01:00
1 parent 5ca84052a7
commit a3f52a5a04
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -3800,7 +3800,7 @@ struct hash<nlohmann::json>
inline size_t operator()(const nlohmann::json& j) const
{
// a naive hashing via the string representation
return hash<std::string>()(j.dump());
return hash<nlohmann::json::string_t>()(j.dump());
}
};
}
+1 -1
View File
@@ -3149,7 +3149,7 @@ struct hash<nlohmann::json>
inline size_t operator()(const nlohmann::json& j) const
{
// a naive hashing via the string representation
return hash<std::string>()(j.dump());
return hash<nlohmann::json::string_t>()(j.dump());
}
};
}