提交 a3f52a5a 编写于 作者: N Niels

minor change to make code more portable

上级 5ca84052
......@@ -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());
}
};
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册