[ndnSIM] table: A workaround for compilation on Ubuntu 14.04
Change-Id: Ifdf4226ac0789f671dba3377d664bdb476ffdaa1
Refs: #3882
diff --git a/daemon/table/name-tree-entry.hpp b/daemon/table/name-tree-entry.hpp
index ab385da..404e209 100644
--- a/daemon/table/name-tree-entry.hpp
+++ b/daemon/table/name-tree-entry.hpp
@@ -189,6 +189,14 @@
*/
using Getter = ENTRY* (Entry::*)() const;
+ GetTableEntry()
+ : m_getter(nullptr)
+ {
+ // Workaround for ability to default-construct the iterator
+ // See https://redmine.named-data.net/issues/3882
+ // Note that behavior is undefined for dereferencing of the default-constructed iterator
+ }
+
explicit
GetTableEntry(Getter getter)
: m_getter(getter)