minor change to make code more portable

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

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());
}
};
}

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());
}
};
}