Fixed -Wshadow warnings
[libcds.git] / cds / container / split_list_set.h
index f6a7831e993213c766dad735530c01debd6dd514..47d48865ea46408e8960f8e389d7e81768950ada 100644 (file)
@@ -644,7 +644,7 @@ namespace cds { namespace container {
         erase_at( Iterator const& iter )
 #endif
         {
-            return base_class::erase_at( static_cast<iterator::iterator_base_class const&>( iter ));
+            return base_class::erase_at( static_cast<typename iterator::iterator_base_class const&>( iter ));
         }
 
 
@@ -936,7 +936,7 @@ namespace cds { namespace container {
         template <typename Q, typename Func>
         bool find_( Q& val, Func f )
         {
-            return base_class::find( val, [&f]( node_type& item, Q& val ) { f( item.m_Value, val ); } );
+            return base_class::find( val, [&f]( node_type& item, Q& v ) { f( item.m_Value, v ); } );
         }
 
         template <typename Q>
@@ -951,7 +951,7 @@ namespace cds { namespace container {
         {
             CDS_UNUSED( pred );
             return base_class::find_with( val, typename maker::template predicate_wrapper<Less>::type(),
-                [&f]( node_type& item, Q& val ) { f( item.m_Value, val ); } );
+                [&f]( node_type& item, Q& v ) { f( item.m_Value, v ); } );
         }
 
         template <typename Q, typename Less>