build: require boost >= 1.71.0
Refs: #5276
Change-Id: I6eaae86beb89e00adf3891deb87816a1f176fdd6
diff --git a/src/conf-file-processor.cpp b/src/conf-file-processor.cpp
index 33ae4a0..af0ad52 100644
--- a/src/conf-file-processor.cpp
+++ b/src/conf-file-processor.cpp
@@ -28,6 +28,7 @@
#include <ndn-cxx/net/face-uri.hpp>
#include <ndn-cxx/util/io.hpp>
+#include <boost/algorithm/string.hpp>
#include <boost/filesystem.hpp>
#include <boost/property_tree/info_parser.hpp>
@@ -127,8 +128,8 @@
private:
const std::string m_key;
const ConfParameterCallback m_setterCallback;
- T m_defaultValue;
+ T m_defaultValue;
T m_minValue;
T m_maxValue;
@@ -493,7 +494,7 @@
m_io,
TIME_ALLOWED_FOR_CANONIZATION);
m_io.run();
- m_io.reset();
+ m_io.restart();
if (failedToCanonize) {
return false;
diff --git a/src/conf-file-processor.hpp b/src/conf-file-processor.hpp
index 735a0c1..6cd4d73 100644
--- a/src/conf-file-processor.hpp
+++ b/src/conf-file-processor.hpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
- * Copyright (c) 2014-2021, The University of Memphis,
+ * Copyright (c) 2014-2023, The University of Memphis,
* Regents of the University of California,
* Arizona Board of Regents.
*
@@ -25,7 +25,7 @@
#include "common.hpp"
#include "conf-parameter.hpp"
-#include <boost/algorithm/string.hpp>
+#include <boost/asio/io_context.hpp>
#include <boost/property_tree/ptree.hpp>
namespace nlsr {
@@ -118,8 +118,8 @@
std::string m_confFileName;
/*! m_confParam The ConfFileProcessor object to configure as parsing is done. */
ConfParameter& m_confParam;
- /*! m_io For canonization of faceUri. */
- boost::asio::io_service m_io;
+ /*! m_io For canonization of FaceUri. */
+ boost::asio::io_context m_io;
};
} // namespace nlsr
diff --git a/src/main.cpp b/src/main.cpp
index 7fa5062..dfe54a7 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
- * Copyright (c) 2014-2021, The University of Memphis,
+ * Copyright (c) 2014-2023, The University of Memphis,
* Regents of the University of California,
* Arizona Board of Regents.
*
@@ -63,13 +63,11 @@
}
}
- boost::asio::io_service ioService;
- ndn::Face face(ioService);
ndn::KeyChain keyChain;
+ ndn::Face face(nullptr, keyChain);
nlsr::ConfParameter confParam(face, keyChain, configFileName);
nlsr::ConfFileProcessor configProcessor(confParam);
-
if (!configProcessor.processConfFile()) {
std::cerr << "Error in configuration file processing" << std::endl;
return 2;