Fixed iterator issues in set/map
[libcds.git] / cds / container / michael_map_rcu.h
index 5fd03535ad76ab80075046d9ff863afbf285ae4a..ddf7e8504d2bda36ce68ec326ccb9a1fcae0842e 100644 (file)
@@ -248,7 +248,7 @@ namespace cds { namespace container {
         {
             return get_const_begin();
         }
-        const_iterator cbegin()
+        const_iterator cbegin() const
         {
             return get_const_begin();
         }
@@ -260,7 +260,7 @@ namespace cds { namespace container {
         {
             return get_const_end();
         }
-        const_iterator cend()
+        const_iterator cend() const
         {
             return get_const_end();
         }