Commit a3f52a5a authored by Niels's avatar Niels

minor change to make code more portable

parent 5ca84052
...@@ -3800,7 +3800,7 @@ struct hash<nlohmann::json> ...@@ -3800,7 +3800,7 @@ struct hash<nlohmann::json>
inline size_t operator()(const nlohmann::json& j) const inline size_t operator()(const nlohmann::json& j) const
{ {
// a naive hashing via the string representation // a naive hashing via the string representation
return hash<std::string>()(j.dump()); return hash<nlohmann::json::string_t>()(j.dump());
} }
}; };
} }
......
...@@ -3149,7 +3149,7 @@ struct hash<nlohmann::json> ...@@ -3149,7 +3149,7 @@ struct hash<nlohmann::json>
inline size_t operator()(const nlohmann::json& j) const inline size_t operator()(const nlohmann::json& j) const
{ {
// a naive hashing via the string representation // a naive hashing via the string representation
return hash<std::string>()(j.dump()); return hash<nlohmann::json::string_t>()(j.dump());
} }
}; };
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment