cmake: Use make_pair instead of Foo::value_type.

It works with all supported compilers.
This commit is contained in:
Stephen Kelly 2015-04-11 12:32:00 +02:00
parent 14c70b8c58
commit 23368c9b83
1 changed files with 2 additions and 2 deletions

View File

@ -257,7 +257,7 @@ void cmake::RenameCommand(const std::string& oldName,
delete pos->second;
this->Commands.erase(pos);
}
this->Commands.insert(RegisteredCommandsMap::value_type(sNewName, cmd));
this->Commands.insert(std::make_pair(sNewName, cmd));
pos = this->Commands.find(sOldName);
this->Commands.erase(pos);
}
@ -283,7 +283,7 @@ void cmake::AddCommand(cmCommand* wg)
delete pos->second;
this->Commands.erase(pos);
}
this->Commands.insert( RegisteredCommandsMap::value_type(name, wg));
this->Commands.insert(std::make_pair(name, wg));
}