From: Mikko Rasa Date: Tue, 23 Nov 2021 08:57:06 +0000 (+0200) Subject: Add a flipped operator() to MemberCompare so upper_bound_member can work X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=85ef592fb1eab68283b12607701e4fb9b9014630;p=libs%2Fcore.git Add a flipped operator() to MemberCompare so upper_bound_member can work --- diff --git a/source/core/algorithm.h b/source/core/algorithm.h index 268bf7b..51c2369 100644 --- a/source/core/algorithm.h +++ b/source/core/algorithm.h @@ -132,6 +132,7 @@ struct MemberCompare MemberCompare(T C::*p): mem_ptr(p) { } bool operator()(const C &obj, const T &v) { return obj.*mem_ptr