summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2022-06-16 12:31:24 +0200
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2022-06-16 12:31:24 +0200
commit42bef16cfac893d5f628e5218c82236e9e694248 (patch)
tree3da9435cb85f5b542dd6a4ffd2f33ec9c2163e18 /src
parent9249af970f91adf2d05d52076a54c2cf3ac6dacb (diff)
downloadmanaserv-42bef16cfac893d5f628e5218c82236e9e694248.tar.gz
manaserv-42bef16cfac893d5f628e5218c82236e9e694248.tar.bz2
manaserv-42bef16cfac893d5f628e5218c82236e9e694248.tar.xz
manaserv-42bef16cfac893d5f628e5218c82236e9e694248.zip
Removed usage of deprecated std::unary_function
Appears to have been entirely unnecessary.
Diffstat (limited to 'src')
-rw-r--r--src/utils/functors.h6
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;