summaryrefslogtreecommitdiff
path: root/gr-zeromq/lib
diff options
context:
space:
mode:
authorMarcus Müller <mmueller@gnuradio.org>2020-12-19 14:46:52 +0100
committerMartin Braun <martin@gnuradio.org>2021-01-04 08:53:17 -0800
commitacf08b91594bbbcd0649a55ff377f242459f1a07 (patch)
tree574ab0c47a44200166d19c77f55b6fcacb8877a2 /gr-zeromq/lib
parent57df09de3a2e27aca42eca621d452f03b15b67b6 (diff)
C++14: Use std::make_unique instead of boost::make_unique
Also, clean up includes Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
Diffstat (limited to 'gr-zeromq/lib')
-rw-r--r--gr-zeromq/lib/pull_msg_source_impl.cc4
-rw-r--r--gr-zeromq/lib/rep_msg_sink_impl.cc6
-rw-r--r--gr-zeromq/lib/req_msg_source_impl.cc4
-rw-r--r--gr-zeromq/lib/sub_msg_source_impl.cc4
4 files changed, 9 insertions, 9 deletions
diff --git a/gr-zeromq/lib/pull_msg_source_impl.cc b/gr-zeromq/lib/pull_msg_source_impl.cc
index 56dba6973..06463ef9c 100644
--- a/gr-zeromq/lib/pull_msg_source_impl.cc
+++ b/gr-zeromq/lib/pull_msg_source_impl.cc
@@ -16,8 +16,8 @@
#include "tag_headers.h"
#include <gnuradio/io_signature.h>
#include <boost/date_time/posix_time/posix_time.hpp>
-#include <boost/make_unique.hpp>
#include <boost/thread/thread.hpp>
+#include <memory>
namespace gr {
namespace zeromq {
@@ -60,7 +60,7 @@ pull_msg_source_impl::~pull_msg_source_impl() {}
bool pull_msg_source_impl::start()
{
d_finished = false;
- d_thread = boost::make_unique<boost::thread>(
+ d_thread = std::make_unique<boost::thread>(
boost::bind(&pull_msg_source_impl::readloop, this));
return true;
}
diff --git a/gr-zeromq/lib/rep_msg_sink_impl.cc b/gr-zeromq/lib/rep_msg_sink_impl.cc
index 5bb4f3b15..d457e7fae 100644
--- a/gr-zeromq/lib/rep_msg_sink_impl.cc
+++ b/gr-zeromq/lib/rep_msg_sink_impl.cc
@@ -15,7 +15,7 @@
#include "rep_msg_sink_impl.h"
#include "tag_headers.h"
#include <gnuradio/io_signature.h>
-#include <boost/make_unique.hpp>
+#include <memory>
namespace gr {
namespace zeromq {
@@ -58,8 +58,8 @@ rep_msg_sink_impl::~rep_msg_sink_impl() {}
bool rep_msg_sink_impl::start()
{
d_finished = false;
- d_thread = boost::make_unique<boost::thread>(
- boost::bind(&rep_msg_sink_impl::readloop, this));
+ d_thread =
+ std::make_unique<boost::thread>(boost::bind(&rep_msg_sink_impl::readloop, this));
return true;
}
diff --git a/gr-zeromq/lib/req_msg_source_impl.cc b/gr-zeromq/lib/req_msg_source_impl.cc
index ff4405cb0..43a1852f0 100644
--- a/gr-zeromq/lib/req_msg_source_impl.cc
+++ b/gr-zeromq/lib/req_msg_source_impl.cc
@@ -16,8 +16,8 @@
#include "tag_headers.h"
#include <gnuradio/io_signature.h>
#include <boost/date_time/posix_time/posix_time.hpp>
-#include <boost/make_unique.hpp>
#include <boost/thread/thread.hpp>
+#include <memory>
namespace gr {
namespace zeromq {
@@ -60,7 +60,7 @@ req_msg_source_impl::~req_msg_source_impl() {}
bool req_msg_source_impl::start()
{
d_finished = false;
- d_thread = boost::make_unique<boost::thread>(
+ d_thread = std::make_unique<boost::thread>(
boost::bind(&req_msg_source_impl::readloop, this));
return true;
}
diff --git a/gr-zeromq/lib/sub_msg_source_impl.cc b/gr-zeromq/lib/sub_msg_source_impl.cc
index 9c4b28309..fd9229fdf 100644
--- a/gr-zeromq/lib/sub_msg_source_impl.cc
+++ b/gr-zeromq/lib/sub_msg_source_impl.cc
@@ -16,8 +16,8 @@
#include "tag_headers.h"
#include <gnuradio/io_signature.h>
#include <boost/date_time/posix_time/posix_time.hpp>
-#include <boost/make_unique.hpp>
#include <boost/thread/thread.hpp>
+#include <memory>
namespace gr {
namespace zeromq {
@@ -59,7 +59,7 @@ sub_msg_source_impl::~sub_msg_source_impl() {}
bool sub_msg_source_impl::start()
{
d_finished = false;
- d_thread = boost::make_unique<boost::thread>(
+ d_thread = std::make_unique<boost::thread>(
boost::bind(&sub_msg_source_impl::readloop, this));
return true;
}