Fixed iterator issues in set/map
[libcds.git] / cds / container / michael_map_nogc.h
index fbeb044eee6d5e451318cd1501826be768c3e3f5..cfa193e8e6b0ea19891156921bfa163ed56323c7 100644 (file)
@@ -178,12 +178,6 @@ namespace cds { namespace container {
             {
                 return !( *this == i );
             }
-
-            /// Checks if the iterator is not equal to \p end()
-            explicit operator bool() const
-            {
-                return *this != iterator_type();
-            }
         };
 
 
@@ -220,7 +214,7 @@ namespace cds { namespace container {
         {
             return get_const_begin();
         }
-        const_iterator cbegin()
+        const_iterator cbegin() const
         {
             return get_const_begin();
         }
@@ -232,7 +226,7 @@ namespace cds { namespace container {
         {
             return get_const_end();
         }
-        const_iterator cend()
+        const_iterator cend() const
         {
             return get_const_end();
         }