mirror of
https://github.com/NixOS/nix.git
synced 2025-11-16 07:22:43 +01:00
Revert "Merge pull request #14097 from obsidiansystems/light-realisation-improvements"
This reverts commitdc8c1461da, reversing changes made to28adcfda32.
This commit is contained in:
parent
7ba3ef21a6
commit
7e39ab4dc7
32 changed files with 254 additions and 423 deletions
|
|
@ -222,22 +222,3 @@ public:
|
|||
};
|
||||
|
||||
} // namespace nix
|
||||
|
||||
template<>
|
||||
struct std::hash<nix::Hash>
|
||||
{
|
||||
std::size_t operator()(const nix::Hash & hash) const noexcept
|
||||
{
|
||||
assert(hash.hashSize > sizeof(size_t));
|
||||
return *reinterpret_cast<const std::size_t *>(&hash.hash);
|
||||
}
|
||||
};
|
||||
|
||||
namespace nix {
|
||||
|
||||
inline std::size_t hash_value(const Hash & hash)
|
||||
{
|
||||
return std::hash<Hash>{}(hash);
|
||||
}
|
||||
|
||||
} // namespace nix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue