diff options
author | jak1 <mike.wollmann@gmail.com> | 2022-02-03 02:03:02 +0100 |
---|---|---|
committer | jak1 <mike.wollmann@gmail.com> | 2022-02-03 02:03:02 +0100 |
commit | e0883268feff1e79250ff6caff276ae5f6a3e74a (patch) | |
tree | 1995853abccea37963c31c7a4e697532a6095661 | |
parent | 02e871b761e9b88d3800918a84bdf142ab06e385 (diff) | |
download | plus-c++17_deprecated_func.tar.gz plus-c++17_deprecated_func.tar.bz2 plus-c++17_deprecated_func.tar.xz plus-c++17_deprecated_func.zip |
removed unary_function, since it is deprecated, nor required anymorec++17_deprecated_func
-rw-r--r-- | src/utils/dtor.h | 5 |
1 files 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<typename T> -struct dtor final : public std::unary_function <T, void> +struct dtor final { A_DEFAULT_COPY(dtor) @@ -38,8 +38,7 @@ struct dtor final : public std::unary_function <T, void> }; template<typename T1, typename T2> -struct dtor<std::pair<T1, T2> > : -public std::unary_function <std::pair<T1, T2>, void> +struct dtor<std::pair<T1, T2> > { void operator()(std::pair<T1, T2> &pair) { delete pair.second; } |