diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2020-07-12 22:15:14 +0000 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2020-07-12 22:15:14 +0000 |
commit | ffc18583b1a086849ac0efd17da40ff510299b52 (patch) | |
tree | c480c8180d0ef2390c2a44d22c654394c5b518d5 /src/libstore/derivations.cc | |
parent | 886c91dfcc462d157dc2ce5265800e98d1bc45dd (diff) |
Move C++17 "pattern matching" boilerplat to utils.hh
Diffstat (limited to 'src/libstore/derivations.cc')
-rw-r--r-- | src/libstore/derivations.cc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/libstore/derivations.cc b/src/libstore/derivations.cc index d267468af..ce2025933 100644 --- a/src/libstore/derivations.cc +++ b/src/libstore/derivations.cc @@ -8,10 +8,6 @@ namespace nix { -// FIXME Put this somewhere? -template<class... Ts> struct overloaded : Ts... { using Ts::operator()...; }; -template<class... Ts> overloaded(Ts...) -> overloaded<Ts...>; - StorePath DerivationOutput::path(const Store & store, std::string_view drvName) const { return std::visit(overloaded { |