diff --git a/src/NCollection/NCollection_StlIterator.hxx b/src/NCollection/NCollection_StlIterator.hxx index e0c0baec5e..d666270ecd 100644 --- a/src/NCollection/NCollection_StlIterator.hxx +++ b/src/NCollection/NCollection_StlIterator.hxx @@ -107,13 +107,13 @@ protected: //! @name methods related to forward STL iterator // an appropriate method based on template arguments (at instantiation time). template - typename opencascade::enable_if::type Reference() + typename opencascade::enable_if::type Reference() const { return myIterator.ChangeValue(); } template - typename opencascade::enable_if::type Reference() + typename opencascade::enable_if::type Reference() const { return myIterator.Value(); } @@ -134,13 +134,13 @@ public: //! @name methods related to forward STL iterator } //! Get reference to current item - typename NCollection_StlIterator::reference operator*() + typename NCollection_StlIterator::reference operator*() const { return Reference(); } //! Dereferencing operator - typename NCollection_StlIterator::pointer operator->() + typename NCollection_StlIterator::pointer operator->() const { return &Reference(); }