From 3a66ab904cfab702d6705a03d45fbb5bf9ef593f Mon Sep 17 00:00:00 2001 From: khizmax Date: Tue, 22 Mar 2016 00:24:58 +0300 Subject: [PATCH] Fixed bug in intrusive::StripedSet adapter for boost intrusive set-like containers --- cds/intrusive/striped_set/adapter.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cds/intrusive/striped_set/adapter.h b/cds/intrusive/striped_set/adapter.h index 3155c1f5..ed91ee54 100644 --- a/cds/intrusive/striped_set/adapter.h +++ b/cds/intrusive/striped_set/adapter.h @@ -223,7 +223,7 @@ namespace cds { namespace intrusive { typedef typename container_type::iterator iterator ; ///< container iterator typedef typename container_type::const_iterator const_iterator ; ///< container const iterator - typedef typename container_type::value_compare key_comparator; + typedef typename container_type::key_compare key_comparator; private: container_type m_Set; @@ -297,13 +297,13 @@ namespace cds { namespace intrusive { } template - bool find( Q& key, Func f ) + bool find( Q const& key, Func f ) { return find( key, key_comparator(), f ); } template - bool find( Q& key, Compare cmp, Func f ) + bool find( Q const& key, Compare cmp, Func f ) { iterator it = m_Set.find( key, cmp ); if ( it == m_Set.end() ) -- 2.34.1