From: khizmax Date: Mon, 21 Mar 2016 21:24:58 +0000 (+0300) Subject: Fixed bug in intrusive::StripedSet adapter for boost intrusive set-like containers X-Git-Tag: v2.2.0~324 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3a66ab904cfab702d6705a03d45fbb5bf9ef593f;p=libcds.git Fixed bug in intrusive::StripedSet adapter for boost intrusive set-like containers --- 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() )