Merge pull request #1461 from sloriot/STL_Extension-In_place_list_hash_value_missing_const

Add missing const
This commit is contained in:
Laurent Rineau 2016-09-16 13:39:34 +02:00 committed by GitHub
commit a19f1fb05f
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}