Use more C++17 features
Mainly structured bindings, inline variables, and class template
argument deduction, plus many more smaller things.
Change-Id: I810d17e0adb470426e4e30c898e03b3140ad052f
diff --git a/daemon/fw/retx-suppression-fixed.hpp b/daemon/fw/retx-suppression-fixed.hpp
index 33ee765..e8af73b 100644
--- a/daemon/fw/retx-suppression-fixed.hpp
+++ b/daemon/fw/retx-suppression-fixed.hpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
- * Copyright (c) 2014-2017, Regents of the University of California,
+ * Copyright (c) 2014-2022, Regents of the University of California,
* Arizona Board of Regents,
* Colorado State University,
* University Pierre & Marie Curie, Sorbonne University,
@@ -26,8 +26,8 @@
#ifndef NFD_DAEMON_FW_RETX_SUPPRESSION_FIXED_HPP
#define NFD_DAEMON_FW_RETX_SUPPRESSION_FIXED_HPP
-#include "algorithm.hpp"
#include "retx-suppression.hpp"
+#include "table/pit-entry.hpp"
namespace nfd {
namespace fw {
@@ -48,7 +48,7 @@
decidePerPitEntry(pit::Entry& pitEntry) const;
public:
- static const time::milliseconds DEFAULT_MIN_RETX_INTERVAL;
+ static constexpr time::milliseconds DEFAULT_MIN_RETX_INTERVAL = 100_ms;
private:
const time::milliseconds m_minRetxInterval;