diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-09-05 00:02:08 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-09-05 00:02:08 +0100 |
commit | 944f788a33e5c65e5ac1013500f78c0658401464 (patch) | |
tree | e6810ed049a45698f91ea0dac86dc6df59b0d1ec /src | |
parent | fdab57f966a3928852701a2e41d75499f8f828ac (diff) | |
download | webstat-944f788a33e5c65e5ac1013500f78c0658401464.tar.bz2 webstat-944f788a33e5c65e5ac1013500f78c0658401464.tar.xz webstat-944f788a33e5c65e5ac1013500f78c0658401464.zip |
Replace DeleteWith lambda with a normal type
Lambdas have internal linkage.
Diffstat (limited to 'src')
-rw-r--r-- | src/util.hpp | 11 |
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 |