aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples/rx_multi_samples.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/examples/rx_multi_samples.cpp')
-rw-r--r--host/examples/rx_multi_samples.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/host/examples/rx_multi_samples.cpp b/host/examples/rx_multi_samples.cpp
index a50b5f0e0..9212ba4b0 100644
--- a/host/examples/rx_multi_samples.cpp
+++ b/host/examples/rx_multi_samples.cpp
@@ -15,13 +15,12 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
-#include <uhd/utils/thread_priority.hpp>
+#include <uhd/utils/thread.hpp>
#include <uhd/utils/safe_main.hpp>
#include <uhd/usrp/multi_usrp.hpp>
#include <boost/program_options.hpp>
#include <boost/format.hpp>
#include <boost/thread.hpp>
-#include <boost/lexical_cast.hpp>
#include <boost/algorithm/string.hpp>
#include <iostream>
#include <complex>
@@ -118,11 +117,11 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
std::vector<size_t> 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<int>(channel_strings[ch]);
+ size_t chan = std::stoi(channel_strings[ch]);
if(chan >= usrp->get_rx_num_channels()){
throw std::runtime_error("Invalid channel(s) specified.");
}
- else channel_nums.push_back(boost::lexical_cast<int>(channel_strings[ch]));
+ else channel_nums.push_back(std::stoi(channel_strings[ch]));
}
//create a receive streamer