Skip to content

Commit

Permalink
Merge pull request embeddedmz#43 from keineahnung2345/cpp_17_binary_f…
Browse files Browse the repository at this point in the history
…unction

Make it compilable with C++17
  • Loading branch information
embeddedmz authored Dec 6, 2022
2 parents 8f94975 + 9b33430 commit cff768f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TestFTP/simpleini/SimpleIni.h
Original file line number Diff line number Diff line change
Expand Up @@ -319,15 +319,15 @@ class CSimpleIniTempl {
#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);
}
};

/** 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;
Expand Down

0 comments on commit cff768f

Please sign in to comment.