Commit a281b140 authored by Simon Morlat's avatar Simon Morlat

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

parent f40bc26d
......@@ -86,7 +86,6 @@ case $target in
esac
CXXFLAGS="${CXXFLAGS} -std=c++11"
AM_CONDITIONAL(BUILD_IOS, test x$ios_found = xyes)
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment