From 8b74034a17d44fef61123f3508a6b39ae23e826b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dhiego=20Cassiano=20Foga=C3=A7a=20Barbosa?= Date: Wed, 14 Feb 2018 15:36:58 -0200 Subject: [PATCH] Fixed build on boost <= 1.65 --- src/anbox/runtime.cpp | 6 ++++++ src/anbox/runtime.h | 1 + 2 files changed, 7 insertions(+) diff --git a/src/anbox/runtime.cpp b/src/anbox/runtime.cpp index a97b673..d7e9706 100644 --- a/src/anbox/runtime.cpp +++ b/src/anbox/runtime.cpp @@ -53,7 +53,13 @@ std::shared_ptr Runtime::create(std::uint32_t pool_size) { Runtime::Runtime(std::uint32_t pool_size) : pool_size_{pool_size}, + + #if BOOST_VERSION == 106600 service_{static_cast(pool_size_)}, + #else + service_{pool_size_}, + #endif + strand_{service_}, keep_alive_{service_} {} diff --git a/src/anbox/runtime.h b/src/anbox/runtime.h index 43065be..ea521e3 100644 --- a/src/anbox/runtime.h +++ b/src/anbox/runtime.h @@ -19,6 +19,7 @@ #define ANBOX_RUNTIME_H_ #include +#include #include #include