From 796461dd432df0a750e260499c53dd5d7e59105f Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 4 Sep 2025 19:45:21 +0100 Subject: Move DeleteWith helper in src/util --- src/util.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/util.hpp') diff --git a/src/util.hpp b/src/util.hpp index 097e032..4965ae7 100644 --- a/src/util.hpp +++ b/src/util.hpp @@ -4,6 +4,11 @@ #include namespace WebStat { + template + using DeleteWith = decltype([](auto obj) { + return Deleter(obj); + }); + template auto visit(auto && visitor, const std::tuple & values) -- cgit v1.2.3