diff options
author | Martin Braun <martin.braun@ettus.com> | 2014-09-23 16:03:27 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2014-09-23 16:03:27 -0700 |
commit | 5aefa0fdfcf45717c133641b7e4df8070ed025e3 (patch) | |
tree | 7eaf97986d62892368f8d14cd48cfc45dddf7923 /host/lib/property_tree.cpp | |
parent | e56809a09aeffa2ccaec4582f6ca2fc0d4b4949e (diff) | |
parent | c431a66df3df4cff82bfa2d2b2c7b16895a7efd6 (diff) | |
download | uhd-5aefa0fdfcf45717c133641b7e4df8070ed025e3.tar.gz uhd-5aefa0fdfcf45717c133641b7e4df8070ed025e3.tar.bz2 uhd-5aefa0fdfcf45717c133641b7e4df8070ed025e3.zip |
Merge branch 'maint'
Diffstat (limited to 'host/lib/property_tree.cpp')
-rw-r--r-- | host/lib/property_tree.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/host/lib/property_tree.cpp b/host/lib/property_tree.cpp index 0f4cbc025..039f05f12 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 **********************************************************************/ |