Skip to content

Commit

Permalink
Merge pull request #1053 from kerautret/FixConstCH
Browse files Browse the repository at this point in the history
fix const missing on ConstIterator
  • Loading branch information
dcoeurjo committed Oct 13, 2015
2 parents b24a27a + a1e5f89 commit 30145eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/DGtal/geometry/tools/MelkmanConvexHull.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,13 @@ namespace DGtal
* Rationale: we do not want to iterate over the same point,
* duplicated at the begin and at the end of the container.
*/
ConstIterator begin();
ConstIterator begin() const;

/**
* End iterator
* @return a const iterator to the end of the container
*/
ConstIterator end();
ConstIterator end() const;

/**
* Writes/Displays the object on an output stream.
Expand Down
4 changes: 2 additions & 2 deletions src/DGtal/geometry/tools/MelkmanConvexHull.ih
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ DGtal::MelkmanConvexHull<TPoint, TOrientationFunctor>::add(const Point& aPoint)
template <typename TPoint, typename TOrientationFunctor>
inline
typename DGtal::MelkmanConvexHull<TPoint, TOrientationFunctor>::ConstIterator
DGtal::MelkmanConvexHull<TPoint, TOrientationFunctor>::begin()
DGtal::MelkmanConvexHull<TPoint, TOrientationFunctor>::begin() const
{
if (myContainer.size() == 0)
return myContainer.end();
Expand All @@ -121,7 +121,7 @@ DGtal::MelkmanConvexHull<TPoint, TOrientationFunctor>::begin()
template <typename TPoint, typename TOrientationFunctor>
inline
typename DGtal::MelkmanConvexHull<TPoint, TOrientationFunctor>::ConstIterator
DGtal::MelkmanConvexHull<TPoint, TOrientationFunctor>::end()
DGtal::MelkmanConvexHull<TPoint, TOrientationFunctor>::end() const
{
return myContainer.end();
}
Expand Down

0 comments on commit 30145eb

Please sign in to comment.