diff options
author | Zhenfei Tai <ztai@google.com> | 2020-05-05 23:39:07 +0300 |
---|---|---|
committer | Zhenfei Tai <ztai@google.com> | 2020-05-06 00:04:11 +0300 |
commit | decde9ef8d94b40551803b47a09d7d3ea2b8c95d (patch) | |
tree | aad24c8656cc2f5bb43360338af38d7b43cda1c5 /redfish-core/lib/task.hpp | |
parent | 8c88860856ac446254cd13ff352f6f8c06a0bf30 (diff) | |
download | bmcweb-decde9ef8d94b40551803b47a09d7d3ea2b8c95d.tar.xz |
bmcweb: Replace deprecated boost call
The boost::asio::io_context::post() is deprecated and will not build
when boost library is version 1.71.0.
See CMakeLists.txt
271 if ("${Boost_VERSION}" STREQUAL "107100")
272 add_definitions (-DBOOST_ASIO_NO_DEPRECATED)
273 endif ()
Signed-off-by: Zhenfei Tai <ztai@google.com>
Change-Id: Iacd657af320ba6eebb1518cd86a955f355ed5068
Diffstat (limited to 'redfish-core/lib/task.hpp')
-rw-r--r-- | redfish-core/lib/task.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/redfish-core/lib/task.hpp b/redfish-core/lib/task.hpp index fa072a7ed3..2f86a6aa75 100644 --- a/redfish-core/lib/task.hpp +++ b/redfish-core/lib/task.hpp @@ -17,6 +17,7 @@ #include "node.hpp" +#include <boost/asio.hpp> #include <boost/container/flat_map.hpp> #include <chrono> #include <variant> @@ -182,7 +183,8 @@ struct TaskData : std::enable_shared_from_this<TaskData> self->finishTask(); // reset the match after the callback was successful - crow::connections::systemBus->get_io_context().post( + boost::asio::post( + crow::connections::systemBus->get_io_context(), [self] { self->match.reset(); }); return; } |