Visual Studio 2013 compilation support for Ryzom Server

This commit is contained in:
kaetemi 2015-02-23 13:08:03 +01:00
parent cdbb9bd21a
commit ec09096b63
5 changed files with 8 additions and 4 deletions

View file

@ -93,6 +93,7 @@ private:
{
enum { bucket_size = 4, min_buckets = 8, };
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

@ -118,6 +118,7 @@ private:
{
enum { bucket_size = 4, min_buckets = 8, };
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

@ -141,6 +141,7 @@ public:
{
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 &left, const NLMISC::CEntityId &right) const { return left < right; }
};
/// Container of entities (all entities are referenced by this container