build: migrate to C++17
Change-Id: Ic9f09efd20b608bfcb713fd319834b2666cf6242
diff --git a/src/lsdb.cpp b/src/lsdb.cpp
index 490c540..bca46a6 100644
--- a/src/lsdb.cpp
+++ b/src/lsdb.cpp
@@ -31,16 +31,13 @@
INIT_LOGGER(Lsdb);
-const ndn::time::steady_clock::TimePoint Lsdb::DEFAULT_LSA_RETRIEVAL_DEADLINE =
- ndn::time::steady_clock::TimePoint::min();
-
Lsdb::Lsdb(ndn::Face& face, ndn::KeyChain& keyChain, ConfParameter& confParam)
: m_face(face)
, m_scheduler(face.getIoService())
, m_confParam(confParam)
, m_sync(m_face,
- [this] (const ndn::Name& routerName, const Lsa::Type& lsaType,
- const uint64_t& sequenceNumber, uint64_t incomingFaceId) {
+ [this] (const auto& routerName, const Lsa::Type& lsaType,
+ uint64_t sequenceNumber, uint64_t incomingFaceId) {
return isLsaNew(routerName, lsaType, sequenceNumber);
}, m_confParam)
, m_lsaRefreshTime(ndn::time::seconds(m_confParam.getLsaRefreshTime()))
@@ -249,10 +246,7 @@
chkLsa->setSeqNo(lsa->getSeqNo());
chkLsa->setExpirationTimePoint(lsa->getExpirationTimePoint());
- bool updated;
- std::list<ndn::Name> namesToAdd, namesToRemove;
- std::tie(updated, namesToAdd, namesToRemove) = chkLsa->update(lsa);
-
+ auto [updated, namesToAdd, namesToRemove] = chkLsa->update(lsa);
if (updated) {
onLsdbModified(lsa, LsdbUpdate::UPDATED, namesToAdd, namesToRemove);
}