From 42bef16cfac893d5f628e5218c82236e9e694248 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Thu, 16 Jun 2022 12:31:24 +0200 Subject: Removed usage of deprecated std::unary_function Appears to have been entirely unnecessary. --- src/utils/functors.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/utils/functors.h b/src/utils/functors.h index fce3bec5..b349dcf9 100644 --- a/src/utils/functors.h +++ b/src/utils/functors.h @@ -21,7 +21,6 @@ #ifndef FUNCTORS_H #define FUNCTORS_H -#include #include #include @@ -33,10 +32,9 @@ namespace * std::istringstream.operator>>(). */ template -struct string_to: public std::unary_function +struct string_to { - T - operator()(const std::string& s) const + T operator()(const std::string& s) const { std::istringstream is(s); T value; -- cgit v1.2.3-70-g09d2