Fixed iterator issues in set/map
[libcds.git] / cds / container / michael_list_rcu.h
index 65a8351e0a8dcd0beb328bf63bc5e5adab070925..24b6b62fc14d247d916b8d24286a98036b0a8e88 100644 (file)
@@ -278,7 +278,7 @@ namespace cds { namespace container {
         {
             return const_iterator( head() );
         }
-        const_iterator cbegin()
+        const_iterator cbegin() const
         {
             return const_iterator( head() );
         }
@@ -290,7 +290,7 @@ namespace cds { namespace container {
         {
             return const_iterator();
         }
-        const_iterator cend()
+        const_iterator cend() const
         {
             return const_iterator();
         }