Minor improvements related to boost::intrusive containers
authorkhizmax <libcds.dev@gmail.com>
Sun, 20 Mar 2016 21:23:39 +0000 (00:23 +0300)
committerkhizmax <libcds.dev@gmail.com>
Sun, 20 Mar 2016 21:23:39 +0000 (00:23 +0300)
cds/intrusive/striped_set/adapter.h

index 2f416cc7e9140e21e281e686bf108d4b4f248890..3155c1f5d9e7192b07ea52a8a69483df6f979be0 100644 (file)
@@ -255,7 +255,7 @@ namespace cds { namespace intrusive {
                         return std::make_pair( true, res.second );
                     }
                     else {
-                        auto it = m_Set.find( val );
+                        auto it = m_Set.find( val, key_comparator() );
                         if ( it == m_Set.end() )
                             return std::make_pair( false, false );
                         f( false, *it, val );
@@ -265,7 +265,7 @@ namespace cds { namespace intrusive {
 
                 bool unlink( value_type& val )
                 {
-                    iterator it = m_Set.find( value_type(val));
+                    iterator it = m_Set.find( val, key_comparator() );
                     if ( it == m_Set.end() || &(*it) != &val )
                         return false;
                     m_Set.erase( it );