Skip to content

Commit

Permalink
Fix C++14 issue with constness of functors
Browse files Browse the repository at this point in the history
  • Loading branch information
Code7R committed Oct 4, 2024
1 parent f428d3b commit 5db76ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fdomenu.cc
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ struct tLessOp4LocalizedDeref {
};

template <typename T> struct lessByDerefAdaptor {
bool operator()(const T *a, const T *b) { return *a < *b; }
bool operator()(const T *a, const T *b) const { return *a < *b; }
};

template <typename T> const T &iback(const initializer_list<T> &q) {
Expand Down

0 comments on commit 5db76ec

Please sign in to comment.