mirror of https://github.com/CGAL/cgal
special case for pointers
This commit is contained in:
parent
18ca811f7f
commit
cec93d0c9f
|
|
@ -37,6 +37,16 @@ namespace internal{
|
|||
sizeof( typename std::iterator_traits<H>::value_type);
|
||||
}
|
||||
};
|
||||
|
||||
template <class H>
|
||||
struct Hash_functor<H*>{
|
||||
std::size_t
|
||||
operator()(const H* h)
|
||||
{
|
||||
return std::size_t(h) /
|
||||
sizeof(H);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue