mirror of
https://github.com/NixOS/nix.git
synced 2025-11-20 09:19:36 +01:00
Clean up ValidPathInfo::isContentAddressed with std::visit
This commit is contained in:
parent
25e61812f3
commit
a33270ce1d
2 changed files with 24 additions and 24 deletions
|
|
@ -24,6 +24,7 @@ std::string makeFixedOutputCA(FileIngestionMethod method, const Hash & hash)
|
|||
+ hash.to_string();
|
||||
}
|
||||
|
||||
// FIXME Put this somewhere?
|
||||
template<class... Ts> struct overloaded : Ts... { using Ts::operator()...; };
|
||||
template<class... Ts> overloaded(Ts...) -> overloaded<Ts...>;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue