Visual Studio 2013 compilation support for Ryzom Server
This commit is contained in:
parent
ae7ee163a0
commit
ebdc7ba16b
5 changed files with 13 additions and 9 deletions
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue