Fixed iterator issues in set/map
[libcds.git] / cds / intrusive / skip_list_rcu.h
index d1c17cfa5d8810e2b649ffa08f8bf7d515deba93..4a61dfc85f14e0bd194e35d92a36608772859c0a 100644 (file)
@@ -1416,7 +1416,7 @@ retry:
         }
 
         /// Returns a forward const iterator addressing the first element in a set
-        const_iterator cbegin()
+        const_iterator cbegin() const
         {
             return const_iterator( *m_Head.head() );
         }
@@ -1434,7 +1434,7 @@ retry:
         }
 
         /// Returns a forward const iterator that addresses the location succeeding the last element in a set.
-        const_iterator cend()
+        const_iterator cend() const
         {
             return const_iterator();
         }