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:
parent
169a368459
commit
c71f80b6eb
1 changed files with 9 additions and 0 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue