Visual Studio 2013 compilation support for Ryzom Server

This commit is contained in:
kaetemi 2015-02-23 12:25:23 +01:00
parent ae7ee163a0
commit ebdc7ba16b
5 changed files with 13 additions and 9 deletions

View file

@ -260,7 +260,7 @@ bool CDBDescriptionParser::loadType(xmlNodePtr node)
return false; return false;
} }
typeNode.EnumValues.push_back(make_pair<string, uint32>(name, value)); typeNode.EnumValues.push_back(std::pair<string, uint32>(name, value));
if (typeNode.Dimension <= value) if (typeNode.Dimension <= value)
typeNode.Dimension = value; typeNode.Dimension = value;

View file

@ -571,7 +571,7 @@ void CPDSLib::update()
CMessage* msgupd = new CMessage("PD_UPDATE"); CMessage* msgupd = new CMessage("PD_UPDATE");
msgupd->serial(_DatabaseId); msgupd->serial(_DatabaseId);
msgupd->serial(_UpdateId); msgupd->serial(_UpdateId);
_QueuedMessages.push_back(make_pair<uint32,CMessage*>(_UpdateId, msgupd)); _QueuedMessages.push_back(std::pair<uint32, CMessage*>(_UpdateId, msgupd));
++_UpdateId; ++_UpdateId;
// serial queue // serial queue

View file

@ -504,7 +504,7 @@ bool CUpdateLog::selectMessages(const CDBDescriptionParser& description, const N
if (message.getType() == CDbMessage::PushContext) if (message.getType() == CDbMessage::PushContext)
{ {
contextsStart.push_back(std::make_pair<uint, bool>(msg, false)); contextsStart.push_back(std::pair<uint, bool>(msg, false));
} }
else if (message.getType() == CDbMessage::PopContext) else if (message.getType() == CDbMessage::PopContext)
{ {
@ -561,7 +561,7 @@ bool CUpdateLog::selectMessages(const CDBDescriptionParser& description, const s
if (message.getType() == CDbMessage::PushContext) if (message.getType() == CDbMessage::PushContext)
{ {
contextsStart.push_back(std::make_pair<uint, bool>(msg, false)); contextsStart.push_back(std::pair<uint, bool>(msg, false));
} }
else if (message.getType() == CDbMessage::PopContext) else if (message.getType() == CDbMessage::PopContext)
{ {
@ -644,7 +644,7 @@ bool CUpdateLog::selectMessages(const CDBDescriptionParser& description, const N
if (message.getType() == CDbMessage::PushContext) if (message.getType() == CDbMessage::PushContext)
{ {
contextsStart.push_back(std::make_pair<uint, bool>(msg, false)); contextsStart.push_back(std::pair<uint, bool>(msg, false));
} }
else if (message.getType() == CDbMessage::PopContext) else if (message.getType() == CDbMessage::PopContext)
{ {

View file

@ -64,7 +64,7 @@ void CPDStringMapper::setMapping(const std::string& str, uint32 id)
return; return;
} }
its = _StringMap.insert(std::make_pair<std::string, uint32>(lowMapStr, id)).first; its = _StringMap.insert(std::pair<std::string, uint32>(lowMapStr, id)).first;
_IdMap[id] = its; _IdMap[id] = its;
} }

View file

@ -497,6 +497,10 @@ struct CColumnIndexHashMapTraits
{ {
return id.hash(); return id.hash();
} }
bool operator()(const CColumnIndex &left, const CColumnIndex &right)
{
return left.hash() < right.hash();
}
}; };
class CSetMap class CSetMap