summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/util.hpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/util.hpp b/src/util.hpp
index 4965ae7..d712d3b 100644
--- a/src/util.hpp
+++ b/src/util.hpp
@@ -4,10 +4,13 @@
#include <tuple>
namespace WebStat {
- template<auto Deleter>
- using DeleteWith = decltype([](auto obj) {
- return Deleter(obj);
- });
+ template<auto Deleter> struct DeleteWith {
+ auto
+ operator()(auto obj)
+ {
+ return Deleter(obj);
+ }
+ };
template<typename... T>
auto