aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/property_tree.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/property_tree.cpp')
-rw-r--r--host/lib/property_tree.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/host/lib/property_tree.cpp b/host/lib/property_tree.cpp
index 76d7bccba..b5ad10b21 100644
--- a/host/lib/property_tree.cpp
+++ b/host/lib/property_tree.cpp
@@ -17,7 +17,6 @@
#include <uhd/property_tree.hpp>
#include <uhd/types/dict.hpp>
-#include <boost/foreach.hpp>
#include <boost/thread/mutex.hpp>
#include <boost/make_shared.hpp>
#include <iostream>
@@ -67,7 +66,7 @@ fs_path uhd::operator/(const fs_path &lhs, const fs_path &rhs){
fs_path uhd::operator/(const fs_path &lhs, size_t rhs)
{
- fs_path rhs_str = boost::lexical_cast<std::string>(rhs);
+ fs_path rhs_str = std::to_string(rhs);
return lhs / rhs_str;
}
@@ -98,7 +97,7 @@ public:
node_type *parent = NULL;
node_type *node = &_guts->root;
- BOOST_FOREACH(const std::string &name, path_tokenizer(path)){
+ for(const std::string &name: path_tokenizer(path)){
if (not node->has_key(name)) throw_path_not_found(path);
parent = node;
node = &(*node)[name];
@@ -112,7 +111,7 @@ public:
boost::mutex::scoped_lock lock(_guts->mutex);
node_type *node = &_guts->root;
- BOOST_FOREACH(const std::string &name, path_tokenizer(path)){
+ for(const std::string &name: path_tokenizer(path)){
if (not node->has_key(name)) return false;
node = &(*node)[name];
}
@@ -124,7 +123,7 @@ public:
boost::mutex::scoped_lock lock(_guts->mutex);
node_type *node = &_guts->root;
- BOOST_FOREACH(const std::string &name, path_tokenizer(path)){
+ for(const std::string &name: path_tokenizer(path)){
if (not node->has_key(name)) throw_path_not_found(path);
node = &(*node)[name];
}
@@ -137,7 +136,7 @@ public:
boost::mutex::scoped_lock lock(_guts->mutex);
node_type *node = &_guts->root;
- BOOST_FOREACH(const std::string &name, path_tokenizer(path)){
+ for(const std::string &name: path_tokenizer(path)){
if (not node->has_key(name)) (*node)[name] = node_type();
node = &(*node)[name];
}
@@ -150,7 +149,7 @@ public:
boost::mutex::scoped_lock lock(_guts->mutex);
node_type *node = &_guts->root;
- BOOST_FOREACH(const std::string &name, path_tokenizer(path)){
+ for(const std::string &name: path_tokenizer(path)){
if (not node->has_key(name)) throw_path_not_found(path);
node = &(*node)[name];
}