Fixed iterator issues in set/map
[libcds.git] / cds / intrusive / michael_list_rcu.h
index 1cd4b6622977c6a76c6b5e4c6beafa107b262995..44d100a66c4114c803d0739afafb9f7b49cf713b 100644 (file)
@@ -278,7 +278,7 @@ namespace cds { namespace intrusive {
             return const_iterator(m_pHead );
         }
         /// Returns a forward const iterator addressing the first element in a list
-        const_iterator cbegin()
+        const_iterator cbegin() const
         {
             return const_iterator(m_pHead );
         }
@@ -289,7 +289,7 @@ namespace cds { namespace intrusive {
             return const_iterator();
         }
         /// Returns an const iterator that addresses the location succeeding the last element in a list
-        const_iterator cend()
+        const_iterator cend() const
         {
             return const_iterator();
         }