mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[10369] Implement UNORDERED_SET support.
Signed-off-by: VladimirMangos <vladimir@getmangos.com> Also added compatibility code for old Visual Studio versions for non standard way hash calculation for hash_set. Thanks to Lynx3D for help in Unix side testing.
This commit is contained in:
parent
a6360987de
commit
6600fc842f
3 changed files with 41 additions and 7 deletions
|
|
@ -292,6 +292,12 @@ HASH_NAMESPACE_START
|
|||
}
|
||||
};
|
||||
|
||||
// for pre-TR1 Visual Studio versions (VS90 SP1 or early)
|
||||
inline size_t hash_value(ObjectGuid const& key)
|
||||
{
|
||||
return hash_value(key.GetRawValue());
|
||||
}
|
||||
|
||||
HASH_NAMESPACE_END
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue