mirror of https://github.com/CGAL/cgal
Merge pull request #1461 from sloriot/STL_Extension-In_place_list_hash_value_missing_const
Add missing const
This commit is contained in:
commit
a19f1fb05f
|
|
@ -185,7 +185,7 @@ template <class T, class Alloc>
|
|||
template <class T, class Alloc>
|
||||
std::size_t hash_value(const In_place_list_const_iterator<T,Alloc>& i)
|
||||
{
|
||||
T* ptr = &*i;
|
||||
const T* ptr = &*i;
|
||||
return reinterpret_cast<std::size_t>(ptr)/ sizeof(T);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue