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/content-address.cc | |
parent | 886c91dfcc462d157dc2ce5265800e98d1bc45dd (diff) |
Move C++17 "pattern matching" boilerplat to utils.hh
Diffstat (limited to 'src/libstore/content-address.cc')
-rw-r--r-- | src/libstore/content-address.cc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/libstore/content-address.cc b/src/libstore/content-address.cc index 6cb69d0a9..f45f77d5c 100644 --- a/src/libstore/content-address.cc +++ b/src/libstore/content-address.cc @@ -24,10 +24,6 @@ std::string makeFixedOutputCA(FileIngestionMethod method, const Hash & hash) + hash.to_string(Base32, true); } -// FIXME Put this somewhere? -template<class... Ts> struct overloaded : Ts... { using Ts::operator()...; }; -template<class... Ts> overloaded(Ts...) -> overloaded<Ts...>; - std::string renderContentAddress(ContentAddress ca) { return std::visit(overloaded { [](TextHash th) { |