diff options
author | Martin Braun <martin.braun@ettus.com> | 2019-09-28 13:13:41 +0200 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-11-26 12:21:32 -0800 |
commit | f773cf9fb96e25d064f43cffdc893ac905d91f15 (patch) | |
tree | b9aab514b0289687dcc006a831c832a53051f34d /host/lib/usrp/fe_connection.cpp | |
parent | fcc2e9c602a6103dfd0f75e035f614b177c5dc35 (diff) | |
download | uhd-f773cf9fb96e25d064f43cffdc893ac905d91f15.tar.gz uhd-f773cf9fb96e25d064f43cffdc893ac905d91f15.tar.bz2 uhd-f773cf9fb96e25d064f43cffdc893ac905d91f15.zip |
uhd: Replace boost::regex with std::regex
boost::regex was a requirement until the minimum version of gcc was
increased. Since it is at version 5.3 now, using Boost.Regex is no
longer necessary.
This change is a pure search-and-replace; Boost and std versions of
regex are compatible and use the same syntax.
Diffstat (limited to 'host/lib/usrp/fe_connection.cpp')
-rw-r--r-- | host/lib/usrp/fe_connection.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/host/lib/usrp/fe_connection.cpp b/host/lib/usrp/fe_connection.cpp index 0c2574ed3..8e3c0c88b 100644 --- a/host/lib/usrp/fe_connection.cpp +++ b/host/lib/usrp/fe_connection.cpp @@ -7,7 +7,7 @@ #include <uhd/usrp/fe_connection.hpp> #include <uhd/exception.hpp> -#include <boost/regex.hpp> +#include <regex> #include <uhd/utils/math.hpp> using namespace uhd::usrp; @@ -21,9 +21,9 @@ fe_connection_t::fe_connection_t( } fe_connection_t::fe_connection_t(const std::string& conn_str, double if_freq) { - static const boost::regex conn_regex("([IQ])(b?)(([IQ])(b?))?"); - boost::cmatch matches; - if (boost::regex_match(conn_str.c_str(), matches, conn_regex)) { + static const std::regex conn_regex("([IQ])(b?)(([IQ])(b?))?"); + std::cmatch matches; + if (std::regex_match(conn_str.c_str(), matches, conn_regex)) { if (matches[3].length() == 0) { //Connection in {I, Q, Ib, Qb} _sampling_mode = REAL; |