diff options
author | Martin Braun <martin.braun@ettus.com> | 2017-06-27 19:06:50 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-06-29 13:40:07 -0700 |
commit | 47cdd6319c74a7b823843aad5ff3fa370ed1e6ef (patch) | |
tree | 216e88f36dbb5ba0b933f0a5ec3c2a151e972589 /host/lib/transport/xport_benchmarker.cpp | |
parent | 412a7053cc0698fd8e1a09d9c40ec2f96cf629af (diff) | |
download | uhd-47cdd6319c74a7b823843aad5ff3fa370ed1e6ef.tar.gz uhd-47cdd6319c74a7b823843aad5ff3fa370ed1e6ef.tar.bz2 uhd-47cdd6319c74a7b823843aad5ff3fa370ed1e6ef.zip |
uhd: Replaced many lexical_cast with appropriate C++11 equivalents
Diffstat (limited to 'host/lib/transport/xport_benchmarker.cpp')
-rw-r--r-- | host/lib/transport/xport_benchmarker.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/host/lib/transport/xport_benchmarker.cpp b/host/lib/transport/xport_benchmarker.cpp index d8f533edc..7157c1ae9 100644 --- a/host/lib/transport/xport_benchmarker.cpp +++ b/host/lib/transport/xport_benchmarker.cpp @@ -54,9 +54,9 @@ const device_addr_t& xport_benchmarker::benchmark_throughput_chdr _results["RX-Bytes"] = (boost::format("%.2fMB") % (rx_bytes/(1024*1024))).str(); _results["TX-Throughput"] = (boost::format("%.2fMB/s") % (tx_rate/(1024*1024))).str(); _results["RX-Throughput"] = (boost::format("%.2fMB/s") % (rx_rate/(1024*1024))).str(); - _results["TX-Timeouts"] = boost::lexical_cast<std::string>(_num_tx_timeouts); - _results["RX-Timeouts"] = boost::lexical_cast<std::string>(_num_rx_timeouts); - _results["Data-Errors"] = boost::lexical_cast<std::string>(_num_data_errors); + _results["TX-Timeouts"] = std::to_string(_num_tx_timeouts); + _results["RX-Timeouts"] = std::to_string(_num_rx_timeouts); + _results["Data-Errors"] = std::to_string(_num_data_errors); return _results; } |