* Changes std::stoi to atoi as gcc does not support it on windows platform

dev-ui
erihel 2013-03-17 23:16:26 +01:00
parent 21de71f871
commit 4abcaae0f7
2 changed files with 2 additions and 7 deletions

View File

@ -1408,13 +1408,7 @@ int GetValueParam(std::string cmd, int rank)
int return_value = 0;
if (results.size() > static_cast<unsigned int>(rank)) {
try {
return_value = std::stoi(results.at(rank));
} catch (std::invalid_argument &e) {
GetLogger()->Error("Exception std::invalid_argument caught in GetValueParam function");
} catch (std::out_of_range &e) {
GetLogger()->Error("Exception std::out_of_range caught in GetValueParam function");
}
return_value = atoi(results.at(rank).c_str());
}
return return_value;

View File

@ -36,6 +36,7 @@
#include <set>
#include <string>
#include <cstdlib>
#include <boost/filesystem.hpp>
#include <boost/algorithm/string.hpp>