diff options
author | Marcus Müller <mueller@kit.edu> | 2018-12-19 17:55:14 +0100 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2018-12-19 12:07:31 -0800 |
commit | 018658c786b1c178e3fa0113c761641c81a83c0a (patch) | |
tree | f01cbfe034936a20f2f26158dda36de4dafdb84e | |
parent | 01d041bd1e4d06203559a780419d16de4b5119a7 (diff) |
C++11: Convert boost::lexical_cast to std::to_string
This is a minor change towards slowly replacing Boost with newer std::
functionality.
-rw-r--r-- | gnuradio-runtime/lib/pmt/pmt_unv.cc | 12 | ||||
-rw-r--r-- | gr-audio/lib/windows/windows_sink.cc | 1 | ||||
-rw-r--r-- | gr-audio/lib/windows/windows_source.cc | 2 |
3 files changed, 6 insertions, 9 deletions
diff --git a/gnuradio-runtime/lib/pmt/pmt_unv.cc b/gnuradio-runtime/lib/pmt/pmt_unv.cc index cda0c085cd..25cd9a3c95 100644 --- a/gnuradio-runtime/lib/pmt/pmt_unv.cc +++ b/gnuradio-runtime/lib/pmt/pmt_unv.cc @@ -474,7 +474,7 @@ u16vector_writable_elements(pmt_t vector, size_t &len) const std::string pmt_u16vector::string_ref(size_t k) const { - return boost::lexical_cast< std::string, uint16_t > (ref(k)); + return std::to_string(ref(k)); } } /* namespace pmt */ @@ -623,7 +623,7 @@ s16vector_writable_elements(pmt_t vector, size_t &len) const std::string pmt_s16vector::string_ref(size_t k) const { - return boost::lexical_cast< std::string, int16_t > (ref(k)); + return std::to_string(ref(k)); } } /* namespace pmt */ @@ -772,7 +772,7 @@ u32vector_writable_elements(pmt_t vector, size_t &len) const std::string pmt_u32vector::string_ref(size_t k) const { - return boost::lexical_cast< std::string, uint32_t > (ref(k)); + return std::to_string(ref(k)); } } /* namespace pmt */ @@ -921,7 +921,7 @@ s32vector_writable_elements(pmt_t vector, size_t &len) const std::string pmt_s32vector::string_ref(size_t k) const { - return boost::lexical_cast< std::string, int32_t > (ref(k)); + return std::to_string(ref(k)); } } /* namespace pmt */ @@ -1070,7 +1070,7 @@ u64vector_writable_elements(pmt_t vector, size_t &len) const std::string pmt_u64vector::string_ref(size_t k) const { - return boost::lexical_cast< std::string, uint64_t > (ref(k)); + return std::to_string(ref(k)); } } /* namespace pmt */ @@ -1219,7 +1219,7 @@ s64vector_writable_elements(pmt_t vector, size_t &len) const std::string pmt_s64vector::string_ref(size_t k) const { - return boost::lexical_cast< std::string, int64_t > (ref(k)); + return std::to_string(ref(k)); } } /* namespace pmt */ diff --git a/gr-audio/lib/windows/windows_sink.cc b/gr-audio/lib/windows/windows_sink.cc index bd9e0e5660..067c71cbf7 100644 --- a/gr-audio/lib/windows/windows_sink.cc +++ b/gr-audio/lib/windows/windows_sink.cc @@ -38,7 +38,6 @@ #include <stdexcept> #include <string> #include <sstream> -#include "boost/lexical_cast.hpp" namespace gr { namespace audio { diff --git a/gr-audio/lib/windows/windows_source.cc b/gr-audio/lib/windows/windows_source.cc index 372a8ba3a8..9f177462e2 100644 --- a/gr-audio/lib/windows/windows_source.cc +++ b/gr-audio/lib/windows/windows_source.cc @@ -38,8 +38,6 @@ #include <gnuradio/prefs.h> #include <gnuradio/logger.h> -#include "boost/lexical_cast.hpp" - namespace gr { namespace audio { |