add missing stdexcept includes

This commit is contained in:
Patrick Brosi 2019-02-11 12:37:07 +01:00
parent 670bae2585
commit d995f77b53
5 changed files with 10 additions and 7 deletions

View file

@ -75,14 +75,14 @@ add_custom_target(
eval eval
COMMAND make COMMAND make
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}//eval WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}//eval
) )
# handles install target # handles install target
install( install(
FILES pfaedle.cfg DESTINATION etc/${PROJECT_NAME} COMPONENT config PERMISSIONS WORLD_READ FILES pfaedle.cfg DESTINATION etc/${PROJECT_NAME} COMPONENT config PERMISSIONS WORLD_READ
) )
install( install(
FILES build/pfaedle DESTINATION bin FILES build/pfaedle DESTINATION bin
PERMISSIONS WORLD_EXECUTE COMPONENT binaries PERMISSIONS WORLD_EXECUTE COMPONENT binaries
) )

View file

@ -12,6 +12,7 @@
#include <exception> #include <exception>
#include <map> #include <map>
#include <mutex> #include <mutex>
#include <stdexcept>
#include <unordered_map> #include <unordered_map>
#include <utility> #include <utility>
#include "ad/cppgtfs/gtfs/Feed.h" #include "ad/cppgtfs/gtfs/Feed.h"

View file

@ -6,6 +6,7 @@
#include <iostream> #include <iostream>
#include <regex> #include <regex>
#include <sstream> #include <sstream>
#include <stdexcept>
#include <string> #include <string>
#include <utility> #include <utility>
#include <vector> #include <vector>

View file

@ -12,6 +12,7 @@
#include <cassert> #include <cassert>
#include <iostream> #include <iostream>
#include <sstream> #include <sstream>
#include <stdexcept>
#include "util/Misc.h" #include "util/Misc.h"
#include "util/String.h" #include "util/String.h"
#include "util/geo/Box.h" #include "util/geo/Box.h"

View file

@ -13,6 +13,7 @@
#include <algorithm> #include <algorithm>
#include <memory> #include <memory>
#include <sstream> #include <sstream>
#include <stdexcept>
#include <thread> #include <thread>
#include <unordered_map> #include <unordered_map>
#ifdef ZLIB_FOUND #ifdef ZLIB_FOUND
@ -108,8 +109,7 @@ void HttpServer::handle() {
answ = Answer(err.what(), err.what()); answ = Answer(err.what(), err.what());
} catch (...) { } catch (...) {
// catch everything to make sure the server continues running // catch everything to make sure the server continues running
answ = Answer( answ = Answer("500 Internal Server Error", "500 Internal Server Error");
"500 Internal Server Error", "500 Internal Server Error");
} }
send(connection, &answ); send(connection, &answ);
@ -146,8 +146,8 @@ Req HttpServer::getReq(int connection) {
int64_t curRcvd = 0; int64_t curRcvd = 0;
HeaderState state = NONE; HeaderState state = NONE;
Req ret; Req ret;
char *tmp = 0; char* tmp = 0;
char *tmp2 = 0; char* tmp2 = 0;
char* brk = 0; char* brk = 0;
while ((curRcvd = read(connection, buf + rcvd, BSIZE - rcvd))) { while ((curRcvd = read(connection, buf + rcvd, BSIZE - rcvd))) {