From 23d06441e9ef92b0cfa421dbf256661d31ed5153 Mon Sep 17 00:00:00 2001 From: Vernon Mauery Date: Wed, 13 Mar 2019 09:16:04 -0700 Subject: Use boost::asio::post() instead of io->post() According to the documentation io->post is deprecated, saying that boost::asio::post() should be used instead. Tested: ipmid runs the same as it did before. Change-Id: I552c7cb5cb8ad8f9f6e2bcffa61ce5135e2faad2 Signed-off-by: Vernon Mauery --- include/ipmid/api.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/ipmid/api.hpp b/include/ipmid/api.hpp index f4cbf13..6e33470 100644 --- a/include/ipmid/api.hpp +++ b/include/ipmid/api.hpp @@ -47,7 +47,7 @@ std::shared_ptr getSdBus(); template static inline void post_work(WorkFn work) { - getIoContext()->post(std::forward(work)); + boost::asio::post(*getIoContext(), std::forward(work)); } enum class SignalResponse : int -- cgit v1.2.3