Further reduce the use of std::bind()
And also avoid deprecated ndn-cxx type aliases
Change-Id: I87e903b9671a3cf1c1b9ab30d4594d595c3c6da9
diff --git a/daemon/table/cs-policy-priority-fifo.hpp b/daemon/table/cs-policy-priority-fifo.hpp
index eaa4c81..44ebe9e 100644
--- a/daemon/table/cs-policy-priority-fifo.hpp
+++ b/daemon/table/cs-policy-priority-fifo.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,
@@ -68,9 +68,6 @@
~PriorityFifoPolicy() final;
-public:
- static const std::string POLICY_NAME;
-
private:
void
doAfterInsert(EntryRef i) final;
@@ -111,6 +108,9 @@
void
moveToStaleQueue(EntryRef i);
+public:
+ static constexpr std::string_view POLICY_NAME{"priority_fifo"};
+
private:
Queue m_queues[QUEUE_MAX];
std::map<EntryRef, EntryInfo*> m_entryInfoMap;