diff options
author | Nick Foster <nick@nerdnetworks.org> | 2010-08-18 14:48:35 -0700 |
---|---|---|
committer | Nick Foster <nick@nerdnetworks.org> | 2010-08-18 14:48:35 -0700 |
commit | 2da87fa5082c507d324dce743d63667a6d21fd80 (patch) | |
tree | ead6d4b7e9af0a403d6079134f9fa992dc52102c /host/lib/utils/props.cpp | |
parent | 40faee2e6d87f7364a0c0c2cf310f1483c0331cf (diff) | |
parent | 8740197dfed997bb235b73ec649edb803d544326 (diff) | |
download | uhd-2da87fa5082c507d324dce743d63667a6d21fd80.tar.gz uhd-2da87fa5082c507d324dce743d63667a6d21fd80.tar.bz2 uhd-2da87fa5082c507d324dce743d63667a6d21fd80.zip |
Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv into usrp2p
Diffstat (limited to 'host/lib/utils/props.cpp')
-rw-r--r-- | host/lib/utils/props.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/host/lib/utils/props.cpp b/host/lib/utils/props.cpp index fac5fe24f..fc9f8e63f 100644 --- a/host/lib/utils/props.cpp +++ b/host/lib/utils/props.cpp @@ -29,15 +29,12 @@ named_prop_t::named_prop_t( /* NOP */ } -typedef boost::tuple<wax::obj, std::string> named_prop_tuple; - -named_prop_tuple uhd::extract_named_prop( +named_prop_t named_prop_t::extract( const wax::obj &key, const std::string &name ){ if (key.type() == typeid(named_prop_t)){ - named_prop_t np = key.as<named_prop_t>(); - return named_prop_tuple(np.key, np.name); + return key.as<named_prop_t>(); } - return named_prop_tuple(key, name); + return named_prop_t(key, name); } |