mirror of https://github.com/CGAL/cgal
Surface_mesh iterator should not return a reference
This commit is contained in:
parent
8f07ed3207
commit
d95d834af1
|
|
@ -507,6 +507,7 @@ private: //------------------------------------------------------ iterator types
|
||||||
: public boost::iterator_facade< Index_iterator<Index_>,
|
: public boost::iterator_facade< Index_iterator<Index_>,
|
||||||
Index_,
|
Index_,
|
||||||
std::random_access_iterator_tag
|
std::random_access_iterator_tag
|
||||||
|
Index_,
|
||||||
>
|
>
|
||||||
{
|
{
|
||||||
typedef boost::iterator_facade< Index_iterator<Index_>,
|
typedef boost::iterator_facade< Index_iterator<Index_>,
|
||||||
|
|
@ -590,7 +591,7 @@ private: //------------------------------------------------------ iterator types
|
||||||
return this->hnd_ == other.hnd_;
|
return this->hnd_ == other.hnd_;
|
||||||
}
|
}
|
||||||
|
|
||||||
Index_& dereference() const { return const_cast<Index_&>(hnd_); }
|
Index_ dereference() const { return const_cast<Index_&>(hnd_); }
|
||||||
|
|
||||||
Index_ hnd_;
|
Index_ hnd_;
|
||||||
const Surface_mesh* mesh_;
|
const Surface_mesh* mesh_;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue