Fixed iterator issues in set/map
[libcds.git] / cds / intrusive / impl / michael_list.h
index 2922cb6ab14a7c64b8342f27ecbb09bc671bafab..09e5072e982f3bce4e3c7f7c18d8d5e8e5da3f9e 100644 (file)
@@ -452,7 +452,7 @@ namespace cds { namespace intrusive {
         }
 
         /// Returns a forward const iterator addressing the first element in a list
-        const_iterator cbegin()
+        const_iterator cbegin() const
         {
             return const_iterator( m_pHead );
         }
@@ -470,7 +470,7 @@ namespace cds { namespace intrusive {
         }
 
         /// 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();
         }