diff options
author | Josh Blum <josh@joshknows.com> | 2010-03-15 17:43:10 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-03-15 17:43:10 -0700 |
commit | fc40ff2f1327d01c72c4d7dbc07a14e473251981 (patch) | |
tree | ad7f1ed847d284c3982157e1c43a13773a6aca9c /host/lib/usrp/usrp2/dboard_impl.cpp | |
parent | e4997af8453980922b469e5d3b66a7b26910dad3 (diff) | |
download | uhd-fc40ff2f1327d01c72c4d7dbc07a14e473251981.tar.gz uhd-fc40ff2f1327d01c72c4d7dbc07a14e473251981.tar.bz2 uhd-fc40ff2f1327d01c72c4d7dbc07a14e473251981.zip |
Replaced uses of wax:cast with the templated as method (like in boost program options).
Diffstat (limited to 'host/lib/usrp/usrp2/dboard_impl.cpp')
-rw-r--r-- | host/lib/usrp/usrp2/dboard_impl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/usrp/usrp2/dboard_impl.cpp b/host/lib/usrp/usrp2/dboard_impl.cpp index da05c3241..6d957436e 100644 --- a/host/lib/usrp/usrp2/dboard_impl.cpp +++ b/host/lib/usrp/usrp2/dboard_impl.cpp @@ -71,7 +71,7 @@ void usrp2_impl::rx_dboard_get(const wax::obj &key_, wax::obj &val){ boost::tie(key, name) = extract_named_prop(key_); //handle the get request conditioned on the key - switch(wax::cast<dboard_prop_t>(key)){ + switch(key.as<dboard_prop_t>()){ case DBOARD_PROP_NAME: val = std::string("usrp2 dboard (rx unit)"); return; @@ -101,7 +101,7 @@ void usrp2_impl::tx_dboard_get(const wax::obj &key_, wax::obj &val){ boost::tie(key, name) = extract_named_prop(key_); //handle the get request conditioned on the key - switch(wax::cast<dboard_prop_t>(key)){ + switch(key.as<dboard_prop_t>()){ case DBOARD_PROP_NAME: val = std::string("usrp2 dboard (tx unit)"); return; |