const_cast is useless

This commit is contained in:
Sébastien Loriot 2022-08-05 13:41:39 +02:00
parent d95d834af1
commit 684f48e14c
1 changed files with 1 additions and 1 deletions

View File

@ -591,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 hnd_; }
Index_ hnd_; Index_ hnd_;
const Surface_mesh* mesh_; const Surface_mesh* mesh_;