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/usrp/dboard_eeprom_c.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/usrp/dboard_eeprom_c.cpp')
-rw-r--r-- | host/lib/usrp/dboard_eeprom_c.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/host/lib/usrp/dboard_eeprom_c.cpp b/host/lib/usrp/dboard_eeprom_c.cpp index e3ef4933f..5d617f941 100644 --- a/host/lib/usrp/dboard_eeprom_c.cpp +++ b/host/lib/usrp/dboard_eeprom_c.cpp @@ -18,8 +18,6 @@ #include <uhd/usrp/dboard_eeprom.h> #include <uhd/error.h> -#include <boost/lexical_cast.hpp> - #include <string.h> uhd_error uhd_dboard_eeprom_make( @@ -84,7 +82,7 @@ uhd_error uhd_dboard_eeprom_get_revision( int* revision_out ){ UHD_SAFE_C_SAVE_ERROR(h, - *revision_out = boost::lexical_cast<int>(h->dboard_eeprom_cpp.revision); + *revision_out = std::stoi(h->dboard_eeprom_cpp.revision); ) } @@ -93,7 +91,7 @@ uhd_error uhd_dboard_eeprom_set_revision( int revision ){ UHD_SAFE_C_SAVE_ERROR(h, - h->dboard_eeprom_cpp.revision = boost::lexical_cast<std::string>(revision); + h->dboard_eeprom_cpp.revision = std::to_string(revision); ) } |