Fixed iterator issues in set/map
[libcds.git] / cds / container / skip_list_set_nogc.h
index ae83672bab812138fccdd1cc1ab404855576d5e1..9427f5b20d256d9744b259b397208c02f9dacb1b 100644 (file)
@@ -189,7 +189,7 @@ namespace cds { namespace container {
         {
             return const_iterator( base_class::begin() );
         }
-        const_iterator cbegin()
+        const_iterator cbegin() const
         {
             return const_iterator( base_class::cbegin() );
         }
@@ -207,7 +207,7 @@ namespace cds { namespace container {
         {
             return const_iterator( base_class::end() );
         }
-        const_iterator cend()
+        const_iterator cend() const
         {
             return const_iterator( base_class::cend() );
         }