table: use boost::iterator_range in NameTree

refs #2155

Change-Id: I14efacf26aa1143177038fff3cf20d9d845f2c68
diff --git a/daemon/table/name-tree.cpp b/daemon/table/name-tree.cpp
index 3dfd2ae..61a5364 100644
--- a/daemon/table/name-tree.cpp
+++ b/daemon/table/name-tree.cpp
@@ -387,7 +387,7 @@
   return false; // if this entry is not empty
 }
 
-NameTree::Range
+boost::iterator_range<NameTree::const_iterator>
 NameTree::fullEnumerate(const name_tree::EntrySelector& entrySelector) const
 {
   NFD_LOG_TRACE("fullEnumerate");
@@ -406,7 +406,7 @@
   return {end(), end()};
 }
 
-NameTree::Range
+boost::iterator_range<NameTree::const_iterator>
 NameTree::partialEnumerate(const Name& prefix,
                            const name_tree::EntrySubTreeSelector& entrySubTreeSelector) const
 {
@@ -435,7 +435,7 @@
   return {it, end()};
 }
 
-NameTree::Range
+boost::iterator_range<NameTree::const_iterator>
 NameTree::findAllMatches(const Name& prefix,
                          const name_tree::EntrySelector& entrySelector) const
 {
@@ -753,10 +753,4 @@
   return *this;
 }
 
-NameTree::Range::Range(const_iterator begin, const_iterator end)
-  : m_begin(begin)
-  , m_end(end)
-{
-}
-
 } // namespace nfd