* Changes std::stoi to atoi as gcc does not support it on windows platform
parent
21de71f871
commit
4abcaae0f7
|
@ -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;
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
|
||||
#include <set>
|
||||
#include <string>
|
||||
#include <cstdlib>
|
||||
|
||||
#include <boost/filesystem.hpp>
|
||||
#include <boost/algorithm/string.hpp>
|
||||
|
|
Loading…
Reference in New Issue