build: require boost >= 1.71.0
Refs: #5276
Change-Id: Ia1014604d6933ca0042cecbaa25e8df2e7e2356c
diff --git a/tests/io-fixture.hpp b/tests/io-fixture.hpp
index 20d3e5b..80b88a4 100644
--- a/tests/io-fixture.hpp
+++ b/tests/io-fixture.hpp
@@ -1,7 +1,7 @@
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil -*- */
/*
- * Copyright (c) 2013-2022 Regents of the University of California
- * The University of Memphis
+ * Copyright (c) 2013-2023, Regents of the University of California,
+ * The University of Memphis.
*
* This file is part of PSync.
*
@@ -22,7 +22,7 @@
#include "tests/clock-fixture.hpp"
-#include <boost/asio/io_service.hpp>
+#include <boost/asio/io_context.hpp>
namespace psync::tests {
@@ -33,17 +33,13 @@
afterTick() final
{
if (m_io.stopped()) {
-#if BOOST_VERSION >= 106600
m_io.restart();
-#else
- m_io.reset();
-#endif
}
m_io.poll();
}
protected:
- boost::asio::io_service m_io;
+ boost::asio::io_context m_io;
};
} // namespace psync::tests