build: require boost >= 1.71.0
Refs: #5276
Change-Id: Ie428541639dcf1113acfb9e9d0a80f9be87d6cd3
diff --git a/tests/tools/ndn-autoconfig/procedure.t.cpp b/tests/tools/ndn-autoconfig/procedure.t.cpp
index ea5311b..d6a024d 100644
--- a/tests/tools/ndn-autoconfig/procedure.t.cpp
+++ b/tests/tools/ndn-autoconfig/procedure.t.cpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
- * Copyright (c) 2014-2022, Regents of the University of California,
+ * Copyright (c) 2014-2023, Regents of the University of California,
* Arizona Board of Regents,
* Colorado State University,
* University Pierre & Marie Curie, Sorbonne University,
@@ -66,10 +66,10 @@
/** \param stageName stage name
* \param nCalls pointer to a variable which is incremented each time doStart is invoked
* \param result expected result, nullopt to cause a failued
- * \param io io_service to asynchronously post the result
+ * \param io io_context to asynchronously post the result
*/
DummyStage(const std::string& stageName, int* nCalls,
- const std::optional<FaceUri>& result, boost::asio::io_service& io)
+ const std::optional<FaceUri>& result, boost::asio::io_context& io)
: m_stageName(stageName)
, m_nCalls(nCalls)
, m_result(result)
@@ -90,7 +90,8 @@
if (m_nCalls != nullptr) {
++(*m_nCalls);
}
- m_io.post([this] {
+
+ boost::asio::post(m_io, [this] {
if (m_result) {
this->succeed(*m_result);
}
@@ -104,7 +105,7 @@
std::string m_stageName;
int* m_nCalls;
std::optional<FaceUri> m_result;
- boost::asio::io_service& m_io;
+ boost::asio::io_context& m_io;
};
/** \brief Two-stage Procedure where the first stage succeeds and the second stage fails.
@@ -133,7 +134,7 @@
int nCalls2 = 0;
private:
- boost::asio::io_service& m_io;
+ boost::asio::io_context& m_io;
};
/** \brief Two-stage Procedure where the first stage fails and the second stage succeeds.
@@ -160,7 +161,7 @@
int nCalls2 = 0;
private:
- boost::asio::io_service& m_io;
+ boost::asio::io_context& m_io;
};
BOOST_AUTO_TEST_SUITE(NdnAutoconfig)