summaryrefslogtreecommitdiff
path: root/boost/pending/indirect_cmp.hpp
diff options
context:
space:
mode:
authorChanho Park <chanho61.park@samsung.com>2014-12-11 18:55:56 +0900
committerChanho Park <chanho61.park@samsung.com>2014-12-11 18:55:56 +0900
commit08c1e93fa36a49f49325a07fe91ff92c964c2b6c (patch)
tree7a7053ceb8874b28ec4b868d4c49b500008a102e /boost/pending/indirect_cmp.hpp
parentbb4dd8289b351fae6b55e303f189127a394a1edd (diff)
downloadboost-08c1e93fa36a49f49325a07fe91ff92c964c2b6c.tar.gz
boost-08c1e93fa36a49f49325a07fe91ff92c964c2b6c.tar.bz2
boost-08c1e93fa36a49f49325a07fe91ff92c964c2b6c.zip
Imported Upstream version 1.57.0upstream/1.57.0
Diffstat (limited to 'boost/pending/indirect_cmp.hpp')
-rw-r--r--boost/pending/indirect_cmp.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/boost/pending/indirect_cmp.hpp b/boost/pending/indirect_cmp.hpp
index 638625cecd..14ee5314af 100644
--- a/boost/pending/indirect_cmp.hpp
+++ b/boost/pending/indirect_cmp.hpp
@@ -33,14 +33,15 @@ namespace boost {
typedef typename boost::property_traits<ReadablePropertyMap>::key_type K;
typedef K first_argument_type;
typedef K second_argument_type;
- typedef T result_type;
+ typedef bool result_type;
inline indirect_cmp(const ReadablePropertyMap& df, const Compare& c = Compare())
: d(df), cmp(c) { }
template <class A, class B>
inline bool
operator()(const A& u, const B& v) const {
- T du = get(d, u), dv = get(d, v);
+ const T& du = get(d, u);
+ const T& dv = get(d, v);
return cmp(du, dv);
}
protected: