Commit 2f61fe09 authored by Davis King's avatar Davis King

merged

parents a07590a7 d7075282
......@@ -26,7 +26,6 @@ namespace dlib
const T& item
) const;
};
/*!
Note that the default behavior of general hash is to attempt to cast
an object of type T to an unsigned long and use that as the hash.
......@@ -55,8 +54,8 @@ namespace dlib
const T& item
) const
{
// hash any types that have a conversion to unsigned long
return static_cast<unsigned long>(item);
// hash any types that have a conversion to uint64
return hash(static_cast<uint64>(item));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment