summaryrefslogtreecommitdiffstats
path: root/src/dabOutput/dabOutputUdp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dabOutput/dabOutputUdp.cpp')
-rw-r--r--src/dabOutput/dabOutputUdp.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/dabOutput/dabOutputUdp.cpp b/src/dabOutput/dabOutputUdp.cpp
index 20e0c40..c129569 100644
--- a/src/dabOutput/dabOutputUdp.cpp
+++ b/src/dabOutput/dabOutputUdp.cpp
@@ -33,7 +33,7 @@
#include <cstring>
#include <cstdlib>
-#include <boost/regex.hpp>
+#include <regex>
#include <string>
#include <cstdio>
#include <limits.h>
@@ -54,14 +54,14 @@
int DabOutputUdp::Open(const char* name)
{
using namespace std;
- using namespace boost;
const string uri_without_proto(name);
regex re_url("([^:]+):([0-9]+)(.*)");
regex re_query("[?](?:src=([^&,]+))(?:[&,]ttl=([0-9]+))?");
smatch what;
- if (regex_match(uri_without_proto, what, re_url, match_default)) {
+ if (regex_match(uri_without_proto, what, re_url,
+ regex_constants::match_default)) {
string address = what[1];
if (this->packet_->getAddress().setAddress(address.c_str()) == -1) {
@@ -83,7 +83,8 @@ int DabOutputUdp::Open(const char* name)
string query_params = what[3];
smatch query_what;
- if (regex_match(query_params, query_what, re_query, match_default)) {
+ if (regex_match(query_params, query_what, re_query,
+ regex_constants::match_default)) {
string src = query_what[1];
int err = socket_->setMulticastSource(src.c_str());