Fixed iterator issues in set/map
[libcds.git] / cds / intrusive / impl / skip_list.h
index 4a4c761e3c931a94cc5d23a69e85caaa25f8b461..b4b3406717a2477448bd1b1a07d9f213d8fcc0d8 100644 (file)
@@ -999,7 +999,7 @@ namespace cds { namespace intrusive {
         {
             return const_iterator( *m_Head.head() );
         }
-        const_iterator cbegin()
+        const_iterator cbegin() const
         {
             return const_iterator( *m_Head.head() );
         }
@@ -1017,7 +1017,7 @@ namespace cds { namespace intrusive {
         {
             return const_iterator();
         }
-        const_iterator cend()
+        const_iterator cend() const
         {
             return const_iterator();
         }