Fixed iterator issues in set/map
[libcds.git] / cds / container / impl / lazy_list.h
index e44fbe42bbbdc3c51946fe9bc5ac5a69d7255ab9..bc82f5fa8ad0443c01a0934cf6e211a699e1c0e8 100644 (file)
@@ -300,7 +300,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
@@ -314,7 +314,7 @@ namespace cds { namespace container {
         {
             return const_iterator( tail() );
         }
-        const_iterator cend()
+        const_iterator cend() const
         {
             return const_iterator( tail() );
         }