Switch to std::filesystem
Change-Id: Idd88815c8971a1dd6a592ac9d3f46d5925afd21b
diff --git a/tests/update/test-save-delete-prefix.cpp b/tests/update/test-save-delete-prefix.cpp
index ef38cef..5c582cd 100644
--- a/tests/update/test-save-delete-prefix.cpp
+++ b/tests/update/test-save-delete-prefix.cpp
@@ -30,10 +30,10 @@
#include <ndn-cxx/security/interest-signer.hpp>
#include <ndn-cxx/security/signing-helpers.hpp>
-#include <boost/filesystem/operations.hpp>
-#include <boost/filesystem/path.hpp>
#include <boost/property_tree/info_parser.hpp>
+#include <filesystem>
+
namespace nlsr::tests {
namespace bpt = boost::property_tree;
@@ -49,7 +49,7 @@
, conf(face, m_keyChain, testConfFile)
, confProcessor(conf)
, nlsr(face, m_keyChain, conf)
- , SITE_CERT_PATH(boost::filesystem::current_path() / std::string("site.cert"))
+ , SITE_CERT_PATH(std::filesystem::current_path() / "site.cert")
, counter(0)
{
std::ifstream source("nlsr.conf", std::ios::binary);
@@ -69,6 +69,7 @@
std::ifstream inputFile;
inputFile.open(testConfFile);
BOOST_REQUIRE(inputFile.is_open());
+
bpt::ptree pt;
bpt::read_info(inputFile, pt);
// Loads section and file name
@@ -164,7 +165,7 @@
ConfParameter conf;
DummyConfFileProcessor confProcessor;
Nlsr nlsr;
- const boost::filesystem::path SITE_CERT_PATH;
+ const std::filesystem::path SITE_CERT_PATH;
ndn::Name sessionTime;
int counter;
};