Fixed iterator issues in set/map
[libcds.git] / cds / container / skip_list_set_rcu.h
index 227a3b8079424d9b48ba59f4b8c5d47880c16ece..85bc71adc6255f76ba67f02656d58f65f61a7db6 100644 (file)
@@ -229,7 +229,7 @@ namespace cds { namespace container {
         {
             return const_iterator( base_class::begin() );
         }
-        const_iterator cbegin()
+        const_iterator cbegin() const
         {
             return const_iterator( base_class::cbegin() );
         }
@@ -247,7 +247,7 @@ namespace cds { namespace container {
         {
             return const_iterator( base_class::end() );
         }
-        const_iterator cend()
+        const_iterator cend() const
         {
             return const_iterator( base_class::cend() );
         }