Fixed iterator issues in set/map
[libcds.git] / cds / container / lazy_list_rcu.h
index a7fedd31a2ea7a6e090ef78fa1036bbd0802226d..d35f318465faf9488e071af4ddb655c161820ab8 100644 (file)
@@ -291,7 +291,7 @@ namespace cds { namespace container {
             ++it        ;   // skip dummy head node
             return it;
         }
-        const_iterator cbegin()
+        const_iterator cbegin() const
         {
             const_iterator it( head() );
             ++it        ;   // skip dummy head node
@@ -305,7 +305,7 @@ namespace cds { namespace container {
         {
             return const_iterator( tail() );
         }
-        const_iterator cend()
+        const_iterator cend() const
         {
             return const_iterator( tail() );
         }