aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib')
-rw-r--r--host/lib/property_tree.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/host/lib/property_tree.cpp b/host/lib/property_tree.cpp
index 50e82a6ba..5666e2639 100644
--- a/host/lib/property_tree.cpp
+++ b/host/lib/property_tree.cpp
@@ -65,6 +65,12 @@ fs_path uhd::operator/(const fs_path &lhs, const fs_path &rhs){
return fs_path(lhs + "/" + rhs);
}
+fs_path uhd::operator/(const fs_path &lhs, size_t rhs)
+{
+ fs_path rhs_str = boost::lexical_cast<std::string>(rhs);
+ return lhs / rhs_str;
+}
+
/***********************************************************************
* Property tree implementation
**********************************************************************/