Core: Switch Hashable struct to HashAppend function
Former-commit-id: 2a20eca0e75bf4067d390f4f5e446de78f26799c
This commit is contained in:
@@ -335,15 +335,11 @@ namespace Nz
|
||||
return m_array >= rhs.m_array;
|
||||
}
|
||||
|
||||
template<>
|
||||
struct Hashable<ByteArray>
|
||||
inline bool HashAppend(AbstractHash* hash, const ByteArray& byteArray)
|
||||
{
|
||||
bool operator()(const ByteArray& byteArray, AbstractHash* hash) const
|
||||
{
|
||||
hash->Append(byteArray.GetConstBuffer(), byteArray.GetSize());
|
||||
return true;
|
||||
}
|
||||
};
|
||||
hash->Append(byteArray.GetConstBuffer(), byteArray.GetSize());
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
namespace std
|
||||
|
||||
Reference in New Issue
Block a user