From e0883268feff1e79250ff6caff276ae5f6a3e74a Mon Sep 17 00:00:00 2001 From: jak1 Date: Thu, 3 Feb 2022 02:03:02 +0100 Subject: removed unary_function, since it is deprecated, nor required anymore --- src/utils/dtor.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/utils/dtor.h b/src/utils/dtor.h index 368aa5ed9..ea6316daa 100644 --- a/src/utils/dtor.h +++ b/src/utils/dtor.h @@ -29,7 +29,7 @@ #include "localconsts.h" template -struct dtor final : public std::unary_function +struct dtor final { A_DEFAULT_COPY(dtor) @@ -38,8 +38,7 @@ struct dtor final : public std::unary_function }; template -struct dtor > : -public std::unary_function , void> +struct dtor > { void operator()(std::pair &pair) { delete pair.second; } -- cgit v1.2.3-60-g2f50