diff options
author | Martin Braun <martin.braun@ettus.com> | 2019-10-17 16:01:22 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-11-26 12:21:32 -0800 |
commit | 72b45bb8def087f2eff09ed671de788978853e2a (patch) | |
tree | 87fc86059b61e5dc43ba19332056075bef845f6d /host/lib/usrp/dboard/db_unknown.cpp | |
parent | d3a16b702230534f7265613a73204bdb051a458e (diff) | |
download | uhd-72b45bb8def087f2eff09ed671de788978853e2a.tar.gz uhd-72b45bb8def087f2eff09ed671de788978853e2a.tar.bz2 uhd-72b45bb8def087f2eff09ed671de788978853e2a.zip |
uhd: Remove all usages of boost::tuple and friends
This replaces all of the following with standard C++ features:
- boost::tuple
- boost::make_tuple
- boost::tuple::get
- #include <boost/tuple/tuple.hpp>
All usages were replaced with search-and-replace scripts (the usages of
get could be automatically replaced with a vim macro, the rest was
straightforward search-and-replace).
Diffstat (limited to 'host/lib/usrp/dboard/db_unknown.cpp')
-rw-r--r-- | host/lib/usrp/dboard/db_unknown.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/host/lib/usrp/dboard/db_unknown.cpp b/host/lib/usrp/dboard/db_unknown.cpp index cfa4e31fe..2640ad607 100644 --- a/host/lib/usrp/dboard/db_unknown.cpp +++ b/host/lib/usrp/dboard/db_unknown.cpp @@ -13,8 +13,8 @@ #include <uhd/usrp/dboard_manager.hpp> #include <boost/assign/list_of.hpp> #include <boost/format.hpp> -#include <boost/tuple/tuple.hpp> #include <vector> +#include <tuple> using namespace uhd; using namespace uhd::usrp; @@ -24,7 +24,7 @@ using namespace boost::assign; * Utility functions **********************************************************************/ static void warn_if_old_rfx(const dboard_id_t &dboard_id, const std::string &xx){ - typedef boost::tuple<std::string, dboard_id_t, dboard_id_t> old_ids_t; //name, rx_id, tx_id + typedef std::tuple<std::string, dboard_id_t, dboard_id_t> old_ids_t; //name, rx_id, tx_id static const std::vector<old_ids_t> old_rfx_ids = list_of (old_ids_t("Flex 400 Classic", 0x0004, 0x0008)) (old_ids_t("Flex 900 Classic", 0x0005, 0x0009)) @@ -34,7 +34,7 @@ static void warn_if_old_rfx(const dboard_id_t &dboard_id, const std::string &xx) ; for(const old_ids_t &old_id: old_rfx_ids){ std::string name; dboard_id_t rx_id, tx_id; - boost::tie(name, rx_id, tx_id) = old_id; + std::tie(name, rx_id, tx_id) = old_id; if ( (xx == "RX" and rx_id == dboard_id) or (xx == "TX" and tx_id == dboard_id) |