Remove deprecated asio names
io_service was deprecated long ago. Replace
boost::io_service -> boost::io_context
and enable BOOST_ASIO_NO_DEPRECATED so we have more warning for this in
the future.
Change-Id: I189b28c05f5017ef9302e79b35d37aa614613f30
Signed-off-by: Ed Tanous <ed@tanous.net>
diff --git a/cold-redundancy/redundancy_main.cpp b/cold-redundancy/redundancy_main.cpp
index aa9a29d..f4fe6bd 100644
--- a/cold-redundancy/redundancy_main.cpp
+++ b/cold-redundancy/redundancy_main.cpp
@@ -19,7 +19,7 @@
int main(void)
{
- boost::asio::io_service io;
+ boost::asio::io_context io;
auto systemBus = std::make_shared<sdbusplus::asio::connection>(io);
systemBus->request_name("xyz.openbmc_project.PSURedundancy");