Fixed iterator issues in set/map
[libcds.git] / cds / container / lazy_kvlist_nogc.h
index e77a5b421b6894984afd7da5085b895daf65ddcf..96e9483addb05d945a30872cdad351d3dc0cd524 100644 (file)
@@ -261,7 +261,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
@@ -275,7 +275,7 @@ namespace cds { namespace container {
         {
             return const_iterator( tail());
         }
-        const_iterator cend()
+        const_iterator cend() const
         {
             return const_iterator( tail());
         }