From 3a6187515677b277489df4ec59f9cf21f1ed62bc Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Mon, 27 Jun 2011 23:05:53 -0700 Subject: usrp2: restored discovery and most of io_impl --- host/lib/property_tree.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'host/lib/property_tree.cpp') diff --git a/host/lib/property_tree.cpp b/host/lib/property_tree.cpp index 7cda7a524..4fbdbad12 100644 --- a/host/lib/property_tree.cpp +++ b/host/lib/property_tree.cpp @@ -49,7 +49,7 @@ public: return true; } - iterator_type iterate(const path_type &path){ + std::vector list(const path_type &path){ boost::mutex::scoped_lock lock(_mutex); node_type *node = &_root; @@ -58,11 +58,7 @@ public: node = &(*node)[leaf]; } - iterator_type iter; - BOOST_FOREACH(const std::string &name, node->keys()){ - iter.push_back(name); - } - return iter; + return node->keys(); } void _create(const path_type &path, const boost::any &prop){ -- cgit v1.2.3