Visual Studio 2013 compilation support for Ryzom Server

--HG--
branch : develop
This commit is contained in:
kaetemi 2015-02-23 13:08:03 +01:00
parent 77d17265eb
commit 609fbbc9c3
5 changed files with 8 additions and 4 deletions

View file

@ -92,7 +92,8 @@ private:
struct CHash
{
enum { bucket_size = 4, min_buckets = 8, };
size_t operator () ( const TEntityIndex& index ) const { return index.getIndex(); }
size_t operator () (const TEntityIndex& index) const { return index.getIndex(); }
bool operator() (const TEntityIndex& left, const TEntityIndex& right) { return left < right; }
};
// table to map CEntityId to TCLEntityId

View file

@ -117,7 +117,8 @@ private:
struct CIdHash
{
enum { bucket_size = 4, min_buckets = 8, };
size_t operator () ( NLMISC::CEntityId id ) const { return (uint32)id.getShortId(); }
size_t operator () (NLMISC::CEntityId id) const { return (uint32)id.getShortId(); }
bool operator() (const NLMISC::CEntityId& left, const NLMISC::CEntityId& right) { return left < right; }
};
typedef CHashMap<NLMISC::CEntityId, TClientId, CIdHash> TIdToClientMap;

View file

@ -77,6 +77,7 @@ struct CInetAddressHashMapTraits
//return x.port();
return x.internalIPAddress();
}
bool operator() (const NLNET::CInetAddress& left, const NLNET::CInetAddress& right) { return left < right; }
// bool operator() (const NLNET::CInetAddress &x1, const NLNET::CInetAddress &x2) const
// {
// return classId1 < classId2;

View file

@ -1862,7 +1862,7 @@ NLMISC_COMMAND( dumpImpulseStats, "Dump Impulse stat to XML log", "<logfile> [[-
if (reverse)
comp = -comp;
result.push_back(std::make_pair<float, CClientHost*>(comp, client));
result.push_back(std::pair<float, CClientHost*>(comp, client));
}
if (ucriterion != 0 && !result.empty())

View file

@ -140,7 +140,8 @@ public:
struct CEntityIdHash
{
enum { bucket_size = 4, min_buckets = 8, };
size_t operator () ( const NLMISC::CEntityId &id ) const { return (uint32)id.getShortId(); }
size_t operator () (const NLMISC::CEntityId &id) const { return (uint32)id.getShortId(); }
size_t operator () (const NLMISC::CEntityId &left, const NLMISC::CEntityId &right) const { return left < right; }
};
/// Container of entities (all entities are referenced by this container