Fixed iterator issues in set/map
[libcds.git] / cds / container / lazy_list_nogc.h
index eac78730090bbe70827cfd9a18b5bcd3791f60a0..bc5d614930ad12bb4c4457870c1c1113e24db0d5 100644 (file)
@@ -226,7 +226,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
@@ -240,7 +240,7 @@ namespace cds { namespace container {
         {
             return const_iterator( tail());
         }
-        const_iterator cend()
+        const_iterator cend() const
         {
             return const_iterator( tail());
         }