From 944f788a33e5c65e5ac1013500f78c0658401464 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 5 Sep 2025 00:02:08 +0100 Subject: Replace DeleteWith lambda with a normal type Lambdas have internal linkage. --- src/util.hpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src') 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 namespace WebStat { - template - using DeleteWith = decltype([](auto obj) { - return Deleter(obj); - }); + template struct DeleteWith { + auto + operator()(auto obj) + { + return Deleter(obj); + } + }; template auto -- cgit v1.2.3