Fix compilation with latest ndn-cxx
And switch source archive to xz compression
Change-Id: I2d6cf9c0f455dd377308b51f80997e4731d11fa2
diff --git a/src/daemon/config-file.hpp b/src/daemon/config-file.hpp
index 29a0587..ae92322 100644
--- a/src/daemon/config-file.hpp
+++ b/src/daemon/config-file.hpp
@@ -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,
@@ -35,24 +35,24 @@
/** \brief a config file section
*/
-typedef boost::property_tree::ptree ConfigSection;
+using ConfigSection = boost::property_tree::ptree;
/** \brief an optional config file section
*/
-typedef boost::optional<const ConfigSection&> OptionalConfigSection;
+using OptionalConfigSection = boost::optional<const ConfigSection&>;
/** \brief callback to process a config file section
*/
-typedef function<void(const ConfigSection& section,
- bool isDryRun,
- const std::string& filename)> ConfigSectionHandler;
+using ConfigSectionHandler = std::function<void(const ConfigSection& section,
+ bool isDryRun,
+ const std::string& filename)>;
/** \brief callback to process a config file section without a \p ConfigSectionHandler
*/
-typedef function<void(const std::string& filename,
- const std::string& sectionName,
- const ConfigSection& section,
- bool isDryRun)> UnknownConfigSectionHandler;
+using UnknownConfigSectionHandler = std::function<void(const std::string& filename,
+ const std::string& sectionName,
+ const ConfigSection& section,
+ bool isDryRun)>;
/** \brief configuration file parsing utility
*/