From: kgv Date: Fri, 17 Jul 2015 06:44:38 +0000 (+0300) Subject: 0026453: NCollection_StlIterator - declare reference getters as const X-Git-Tag: V7_0_0_beta~439 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=e506f142792b436a7335488efcdde96568c267ee;p=occt.git 0026453: NCollection_StlIterator - declare reference getters as const --- 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(); }