Visual Studio 2013 compilation support for Ryzom Server

--HG--
branch : develop
This commit is contained in:
kaetemi 2015-02-23 12:25:23 +01:00
parent 543331ea75
commit a912fa49ac
5 changed files with 13 additions and 9 deletions

View file

@ -260,7 +260,7 @@ bool CDBDescriptionParser::loadType(xmlNodePtr node)
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)
typeNode.Dimension = value;

View file

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

View file

@ -504,7 +504,7 @@ bool CUpdateLog::selectMessages(const CDBDescriptionParser& description, const N
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)
{
@ -561,7 +561,7 @@ bool CUpdateLog::selectMessages(const CDBDescriptionParser& description, const s
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)
{
@ -644,7 +644,7 @@ bool CUpdateLog::selectMessages(const CDBDescriptionParser& description, const N
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)
{

View file

@ -64,7 +64,7 @@ void CPDStringMapper::setMapping(const std::string& str, uint32 id)
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;
}

View file

@ -494,9 +494,13 @@ struct CColumnIndexHashMapTraits
static const size_t min_buckets = 8;
CColumnIndexHashMapTraits() { }
size_t operator() (const CColumnIndex &id) const
{
return id.hash();
}
{
return id.hash();
}
bool operator()(const CColumnIndex &left, const CColumnIndex &right)
{
return left.hash() < right.hash();
}
};
class CSetMap