diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/utils/functors.h | 6 |
1 files changed, 2 insertions, 4 deletions
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 <functional> #include <sstream> #include <string> @@ -33,10 +32,9 @@ namespace * std::istringstream.operator>>(). */ template <typename T> -struct string_to: public std::unary_function<std::string, T> +struct string_to { - T - operator()(const std::string& s) const + T operator()(const std::string& s) const { std::istringstream is(s); T value; |