don't enable c++11, as it is used yet. This breaks compilation on centos6.

This commit is contained in:
Simon Morlat 2017-04-01 14:37:20 +02:00
parent f40bc26db4
commit a281b1408f
2 changed files with 1 additions and 2 deletions

View file

@ -86,7 +86,6 @@ case $target in
esac
CXXFLAGS="${CXXFLAGS} -std=c++11"
AM_CONDITIONAL(BUILD_IOS, test x$ios_found = xyes)

View file

@ -92,7 +92,7 @@ void RegisterInfoCommand::exec(Daemon *app, const std::string& args) {
} else {
int id;
try {
id = std::stoi(param);
id = atoi(param.c_str());
} catch (std::invalid_argument) {
app->sendResponse(Response("Invalid ID.", Response::Error));
return;