[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:
CipherCOM 2010-08-18 04:34:30 +04:00 committed by VladimirMangos
parent a6360987de
commit 6600fc842f
3 changed files with 41 additions and 7 deletions

View file

@ -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