From f773cf9fb96e25d064f43cffdc893ac905d91f15 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Sat, 28 Sep 2019 13:13:41 +0200 Subject: 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. --- host/lib/usrp/fe_connection.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'host/lib/usrp/fe_connection.cpp') 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 #include -#include +#include #include 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; -- cgit v1.2.3