From 47cdd6319c74a7b823843aad5ff3fa370ed1e6ef Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 27 Jun 2017 19:06:50 -0700 Subject: uhd: Replaced many lexical_cast with appropriate C++11 equivalents --- host/examples/tx_bursts.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'host/examples/tx_bursts.cpp') diff --git a/host/examples/tx_bursts.cpp b/host/examples/tx_bursts.cpp index 5ee00d5cd..d174f4d6f 100644 --- a/host/examples/tx_bursts.cpp +++ b/host/examples/tx_bursts.cpp @@ -21,7 +21,6 @@ #include #include #include -#include #include #include #include @@ -86,11 +85,11 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ std::vector channel_nums; boost::split(channel_strings, channel_list, boost::is_any_of("\"',")); for(size_t ch = 0; ch < channel_strings.size(); ch++){ - size_t chan = boost::lexical_cast(channel_strings[ch]); + size_t chan = std::stoi(channel_strings[ch]); if(chan >= usrp->get_tx_num_channels()){ throw std::runtime_error("Invalid channel(s) specified."); } - else channel_nums.push_back(boost::lexical_cast(channel_strings[ch])); + else channel_nums.push_back(std::stoi(channel_strings[ch])); } //set the tx sample rate -- cgit v1.2.3