Fixed iterator issues in set/map
[libcds.git] / cds / container / skip_list_map_rcu.h
index 2701d0e1649e3d8f0993a50cf07a6d4b9cd0057c..ea14f08c0cccd5353a23975ff5393b32b3ec2456 100644 (file)
@@ -197,7 +197,7 @@ namespace cds { namespace container {
         {
             return cbegin();
         }
-        const_iterator cbegin()
+        const_iterator cbegin() const
         {
             return const_iterator( base_class::cbegin() );
         }
@@ -215,7 +215,7 @@ namespace cds { namespace container {
         {
             return cend();
         }
-        const_iterator cend()
+        const_iterator cend() const
         {
             return const_iterator( base_class::cend() );
         }