Fixed iterator issues in set/map
[libcds.git] / cds / container / lazy_kvlist_rcu.h
index 218c2bc3e374c3bab008165fde1fb840b51a16fa..12e7c29715d3df2b864938664644af08666a4c50 100644 (file)
@@ -295,7 +295,7 @@ namespace cds { namespace container {
             ++it;   // skip dummy head
             return it;
         }
-        const_iterator cbegin()
+        const_iterator cbegin() const
         {
             const_iterator it( head() );
             ++it;   // skip dummy head
@@ -309,7 +309,7 @@ namespace cds { namespace container {
         {
             return const_iterator( tail());
         }
-        const_iterator cend()
+        const_iterator cend() const
         {
             return const_iterator( tail());
         }