Fixed iterator issues in set/map
[libcds.git] / cds / container / michael_map.h
index 285baeb561fb880c0c6671db6ea8def127928dbf..1f7291e9f9ea494eb2ea5fa267547846a673abc3 100644 (file)
@@ -327,7 +327,7 @@ namespace cds { namespace container {
         {
             return get_const_begin();
         }
-        const_iterator cbegin()
+        const_iterator cbegin() const
         {
             return get_const_begin();
         }
@@ -339,7 +339,7 @@ namespace cds { namespace container {
         {
             return get_const_end();
         }
-        const_iterator cend()
+        const_iterator cend() const
         {
             return get_const_end();
         }