cpp-common/bt2: use more specific static assertion messages
[babeltrace.git] / src / cpp-common / bt2 / common-iterator.hpp
index e878b1b9c58f607fd88ad4748b5c3847c261cb3c..99332d65310265ea09c5bcab6d37c4432c9a7c98 100644 (file)
@@ -64,12 +64,12 @@ public:
         return !(*this == other);
     }
 
-    reference operator*() noexcept
+    reference operator*() const noexcept
     {
         return *_mCurrVal;
     }
 
-    pointer operator->() noexcept
+    pointer operator->() const noexcept
     {
         return &(*_mCurrVal);
     }
@@ -77,7 +77,7 @@ public:
 private:
     void _updateCurrentValue() noexcept
     {
-        if (_mIdx < _mContainer.size()) {
+        if (_mIdx < _mContainer.length()) {
             _mCurrVal = _mContainer[_mIdx];
         } else {
             _mCurrVal = nonstd::nullopt;
This page took 0.026437 seconds and 4 git commands to generate.