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