Fixed iterator issues in set/map
[libcds.git] / cds / container / impl / skip_list_map.h
index 303ea953133ef2a2c8244f4769d74522155f4d2d..2bc344b871fa8a949fe17e2d4ea35ecf04d6a575 100644 (file)
@@ -199,7 +199,7 @@ namespace cds { namespace container {
         {
             return cbegin();
         }
-        const_iterator cbegin()
+        const_iterator cbegin() const
         {
             return const_iterator( base_class::cbegin() );
         }
@@ -217,7 +217,7 @@ namespace cds { namespace container {
         {
             return cend();
         }
-        const_iterator cend()
+        const_iterator cend() const
         {
             return const_iterator( base_class::cend() );
         }