diff options
Diffstat (limited to 'host/lib/types')
-rw-r--r-- | host/lib/types/sensors.cpp | 5 | ||||
-rw-r--r-- | host/lib/types/sensors_c.cpp | 5 |
2 files changed, 3 insertions, 7 deletions
diff --git a/host/lib/types/sensors.cpp b/host/lib/types/sensors.cpp index 0406e35d4..5ac48dc4b 100644 --- a/host/lib/types/sensors.cpp +++ b/host/lib/types/sensors.cpp @@ -17,7 +17,6 @@ #include <uhd/types/sensors.hpp> #include <uhd/exception.hpp> -#include <boost/lexical_cast.hpp> #include <boost/format.hpp> using namespace uhd; @@ -92,11 +91,11 @@ bool sensor_value_t::to_bool(void) const{ } signed sensor_value_t::to_int(void) const{ - return boost::lexical_cast<signed>(value); + return std::stoi(value); } double sensor_value_t::to_real(void) const{ - return boost::lexical_cast<double>(value); + return std::stod(value); } sensor_value_t& sensor_value_t::operator=(const sensor_value_t& rhs) diff --git a/host/lib/types/sensors_c.cpp b/host/lib/types/sensors_c.cpp index f1976c102..cec4fbaff 100644 --- a/host/lib/types/sensors_c.cpp +++ b/host/lib/types/sensors_c.cpp @@ -16,12 +16,9 @@ // #include <uhd/types/sensors.h> - -#include <boost/lexical_cast.hpp> - #include <stdexcept> -#include <string.h> #include <string> +#include <string.h> uhd_error uhd_sensor_value_make_from_bool( uhd_sensor_value_handle* h, |