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

@ -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);