mirror of https://github.com/CGAL/cgal
ADL can be used with hash_value()
This commit is contained in:
parent
7a5cbc6940
commit
d33b46724e
|
|
@ -86,13 +86,15 @@ namespace internal {
|
|||
template<class T>
|
||||
struct hash_item<T, false> {
|
||||
std::size_t operator()(T i) const {
|
||||
return boost::hash_value(i);
|
||||
using boost::hash_value;
|
||||
return hash_value(i);
|
||||
}
|
||||
};
|
||||
|
||||
template<class T>
|
||||
struct hash_item<T, true> {
|
||||
std::size_t operator()(T i) const {
|
||||
using boost::hash_value;
|
||||
return boost::hash_value(i.operator->());
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue