Fixed iterator issues in set/map
[libcds.git] / cds / container / michael_kvlist_nogc.h
index ca1faa037dfa9a836f1e0259da8bee45b41872f7..73215dbeee9f546439d08ff066af26edae76620b 100644 (file)
@@ -276,7 +276,7 @@ namespace cds { namespace container {
         {
             return const_iterator( head() );
         }
-        const_iterator cbegin()
+        const_iterator cbegin() const
         {
             return const_iterator( head() );
         }
@@ -288,7 +288,7 @@ namespace cds { namespace container {
         {
             return const_iterator();
         }
-        const_iterator cend()
+        const_iterator cend() const
         {
             return const_iterator();
         }