table: make FIB and StrategyChoice iterators default-constructible
They were previously not default-constructible when compiled with gcc 4.8.4.
refs #3882
Change-Id: I2431c869fb61b7adbe83d5551705981bf8618280
diff --git a/daemon/table/name-tree-entry.hpp b/daemon/table/name-tree-entry.hpp
index ab385da..2fa0806 100644
--- a/daemon/table/name-tree-entry.hpp
+++ b/daemon/table/name-tree-entry.hpp
@@ -189,8 +189,11 @@
*/
using Getter = ENTRY* (Entry::*)() const;
+ /** \note The default argument is needed to ensure FIB and StrategyChoice iterators
+ * are default-constructible.
+ */
explicit
- GetTableEntry(Getter getter)
+ GetTableEntry(Getter getter = nullptr)
: m_getter(getter)
{
}