Fix build with latest ndn-cxx
Change-Id: I48f45eab3f3500c1a2174094c820642b1eb4962f
diff --git a/tools/chunks/catchunks/data-fetcher.cpp b/tools/chunks/catchunks/data-fetcher.cpp
index 15645b0..ccc142a 100644
--- a/tools/chunks/catchunks/data-fetcher.cpp
+++ b/tools/chunks/catchunks/data-fetcher.cpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
- * Copyright (c) 2016-2023, Regents of the University of California,
+ * Copyright (c) 2016-2024, Regents of the University of California,
* Colorado State University,
* University Pierre & Marie Curie, Sorbonne University.
*
@@ -138,7 +138,7 @@
else {
m_hasError = true;
if (m_onNack)
- m_onNack(interest, "Reached the maximum number of nack retries (" + to_string(m_maxNackRetries) +
+ m_onNack(interest, "Reached the maximum number of nack retries (" + std::to_string(m_maxNackRetries) +
") while retrieving data for " + interest.getName().toUri());
}
}
@@ -163,7 +163,7 @@
else {
m_hasError = true;
if (m_onTimeout)
- m_onTimeout(interest, "Reached the maximum number of timeout retries (" + to_string(m_maxTimeoutRetries) +
+ m_onTimeout(interest, "Reached the maximum number of timeout retries (" + std::to_string(m_maxTimeoutRetries) +
") while retrieving data for " + interest.getName().toUri());
}
}