1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-09 12:06:01 +01:00

libstore: Implement boost::hash for StorePath

This commit is contained in:
Sergei Zimmerman 2025-09-22 01:16:52 +03:00
parent 169a368459
commit c71f80b6eb
No known key found for this signature in database

View file

@ -108,4 +108,13 @@ struct hash<nix::StorePath>
} // namespace std } // namespace std
namespace nix {
inline std::size_t hash_value(const StorePath & path)
{
return std::hash<StorePath>{}(path);
}
} // namespace nix
JSON_IMPL(nix::StorePath) JSON_IMPL(nix::StorePath)