minor change to make code more portable
This commit is contained in:
1 parent
5ca84052a7
commit
a3f52a5a04
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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
@@ -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());
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user