diff options
author | Ian Dunn <iondune@gmail.com> | 2017-08-25 05:09:43 +0300 |
---|---|---|
committer | Brodie Thiesfield <brofield@users.noreply.github.com> | 2017-08-25 05:09:43 +0300 |
commit | b414bb2708aa573890aa8afc039bb17561915173 (patch) | |
tree | 7cdad3ffc3f0856c6191be99903f632da478d10a /SimpleIni.h | |
parent | 03e27b27901c8e12fef6daeddc18a9a3e217dea4 (diff) |
Replace std::binary_function with std::function (#31)
* std::binary_function is deprecated in C++11, removed in C++17 - replace with std::function
* Remove inheritance of std::function<...> that is not necessary. See #31
Diffstat (limited to 'SimpleIni.h')
-rw-r--r-- | SimpleIni.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/SimpleIni.h b/SimpleIni.h index b0cad33..6cf5ced 100644 --- a/SimpleIni.h +++ b/SimpleIni.h @@ -328,7 +328,7 @@ public: #endif /** Strict less ordering by name of key only */ - struct KeyOrder : std::binary_function<Entry, Entry, bool> { + struct KeyOrder { bool operator()(const Entry & lhs, const Entry & rhs) const { const static SI_STRLESS isLess = SI_STRLESS(); return isLess(lhs.pItem, rhs.pItem); @@ -336,7 +336,7 @@ public: }; /** Strict less ordering by order, and then name of key */ - struct LoadOrder : std::binary_function<Entry, Entry, bool> { + struct LoadOrder { bool operator()(const Entry & lhs, const Entry & rhs) const { if (lhs.nOrder != rhs.nOrder) { return lhs.nOrder < rhs.nOrder; |