core: slim down `common.hpp`
Change-Id: I875c35147edd2261fbaa24e809c170d5cd9b94d3
diff --git a/tools/nfdc/command-definition.cpp b/tools/nfdc/command-definition.cpp
index 443aff0..5e59382 100644
--- a/tools/nfdc/command-definition.cpp
+++ b/tools/nfdc/command-definition.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-2024, Regents of the University of California,
* Arizona Board of Regents,
* Colorado State University,
* University Pierre & Marie Curie, Sorbonne University,
@@ -26,9 +26,12 @@
#include "command-definition.hpp"
#include "status-report.hpp"
-#include <boost/lexical_cast.hpp>
+#include <ndn-cxx/net/face-uri.hpp>
+#include <ndn-cxx/util/backports.hpp>
#include <ndn-cxx/util/logger.hpp>
+#include <boost/lexical_cast.hpp>
+
namespace nfd::tools::nfdc {
NDN_LOG_INIT(nfdc.CommandDefinition);
@@ -282,14 +285,14 @@
return Name(token);
case ArgValueType::FACE_URI:
- return FaceUri(token);
+ return ndn::FaceUri(token);
case ArgValueType::FACE_ID_OR_URI:
try {
return boost::lexical_cast<uint64_t>(token);
}
catch (const boost::bad_lexical_cast&) {
- return FaceUri(token);
+ return ndn::FaceUri(token);
}
case ArgValueType::FACE_PERSISTENCY: