minor change to make code more portable
This commit is contained in:
parent
5ca84052a7
commit
a3f52a5a04
2 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue