diff options
Diffstat (limited to 'crow/include/crow/app.h')
-rw-r--r-- | crow/include/crow/app.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crow/include/crow/app.h b/crow/include/crow/app.h index 428705d223..9a2281afb9 100644 --- a/crow/include/crow/app.h +++ b/crow/include/crow/app.h @@ -36,8 +36,8 @@ template <typename... Middlewares> class Crow using server_t = Server<Crow, socket_t, Middlewares...>; #endif - explicit Crow(std::shared_ptr<boost::asio::io_service> io = - std::make_shared<boost::asio::io_service>()) : + explicit Crow(std::shared_ptr<boost::asio::io_context> io = + std::make_shared<boost::asio::io_context>()) : io(std::move(io)) { } @@ -225,7 +225,7 @@ template <typename... Middlewares> class Crow } private: - std::shared_ptr<asio::io_service> io; + std::shared_ptr<asio::io_context> io; #ifdef BMCWEB_ENABLE_SSL uint16_t portUint = 443; #else |