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/cold_redundancy.cpp b/cold-redundancy/cold_redundancy.cpp
index c912ed2..42f1c45 100644
--- a/cold-redundancy/cold_redundancy.cpp
+++ b/cold-redundancy/cold_redundancy.cpp
@@ -42,7 +42,7 @@
 } // namespace
 
 ColdRedundancy::ColdRedundancy(
-    boost::asio::io_service& io,
+    boost::asio::io_context& io,
     std::shared_ptr<sdbusplus::asio::connection>& systemBus) :
     filterTimer(io), systemBus(systemBus)
 {
diff --git a/cold-redundancy/cold_redundancy.hpp b/cold-redundancy/cold_redundancy.hpp
index 1a54462..97db2c0 100644
--- a/cold-redundancy/cold_redundancy.hpp
+++ b/cold-redundancy/cold_redundancy.hpp
@@ -32,7 +32,7 @@
      * @param[in] dbusConnection - D-Bus connection
      */
     ColdRedundancy(
-        boost::asio::io_service& io,
+        boost::asio::io_context& io,
         std::shared_ptr<sdbusplus::asio::connection>& dbusConnection);
 
     /**
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");