diff options
author | Thomas Habets <thomas@habets.se> | 2020-03-14 12:01:44 +0000 |
---|---|---|
committer | Michael Dickens <michael.dickens@ettus.com> | 2020-04-01 11:44:45 -0400 |
commit | 7a9169fe8cca1cb378be0d0d403e03a338ffbfda (patch) | |
tree | fef77ae9c34538b78e4172580cb5ecdc24d40134 /gr-zeromq/include/gnuradio | |
parent | 82262753a56d15cfa6343044c726cf0035c38d9c (diff) |
Switch from boost pointers to std C++11 pointers
Most of this code is automated code changes:
```
set -e
SUB="s/dummy/dummy/"
for i in shared_ptr make_shared dynamic_pointer_cast weak_ptr enable_shared_from_this get_deleter; do
SUB="$SUB;s/boost::$i/std::$i/g"
done
SUB="$SUB;s^#include <boost/shared_ptr.hpp>^#include <memory>^g"
SUB="$SUB;s^namespace boost^namespace std^g"
find . \( -name "*.cc" -o -name "*.h" -o -name "*.i" -o -name "*.cxx" -o -name "*.py" \) -print0 | xargs -0 sed -i "$SUB"
```
Only one manual change. In `./gr-fec/lib/fec_mtrx_impl.cc`, add
`#include <algorithm>`.
Diffstat (limited to 'gr-zeromq/include/gnuradio')
-rw-r--r-- | gr-zeromq/include/gnuradio/zeromq/pub_msg_sink.h | 2 | ||||
-rw-r--r-- | gr-zeromq/include/gnuradio/zeromq/pub_sink.h | 2 | ||||
-rw-r--r-- | gr-zeromq/include/gnuradio/zeromq/pull_msg_source.h | 2 | ||||
-rw-r--r-- | gr-zeromq/include/gnuradio/zeromq/pull_source.h | 2 | ||||
-rw-r--r-- | gr-zeromq/include/gnuradio/zeromq/push_msg_sink.h | 2 | ||||
-rw-r--r-- | gr-zeromq/include/gnuradio/zeromq/push_sink.h | 2 | ||||
-rw-r--r-- | gr-zeromq/include/gnuradio/zeromq/rep_msg_sink.h | 2 | ||||
-rw-r--r-- | gr-zeromq/include/gnuradio/zeromq/rep_sink.h | 2 | ||||
-rw-r--r-- | gr-zeromq/include/gnuradio/zeromq/req_msg_source.h | 2 | ||||
-rw-r--r-- | gr-zeromq/include/gnuradio/zeromq/req_source.h | 2 | ||||
-rw-r--r-- | gr-zeromq/include/gnuradio/zeromq/sub_msg_source.h | 2 | ||||
-rw-r--r-- | gr-zeromq/include/gnuradio/zeromq/sub_source.h | 2 |
12 files changed, 12 insertions, 12 deletions
diff --git a/gr-zeromq/include/gnuradio/zeromq/pub_msg_sink.h b/gr-zeromq/include/gnuradio/zeromq/pub_msg_sink.h index 470c357f6c..6bccc19001 100644 --- a/gr-zeromq/include/gnuradio/zeromq/pub_msg_sink.h +++ b/gr-zeromq/include/gnuradio/zeromq/pub_msg_sink.h @@ -31,7 +31,7 @@ namespace zeromq { class ZEROMQ_API pub_msg_sink : virtual public gr::block { public: - typedef boost::shared_ptr<pub_msg_sink> sptr; + typedef std::shared_ptr<pub_msg_sink> sptr; /*! * \brief Return a shared_ptr to a new instance of zeromq::pub_msg_sink. diff --git a/gr-zeromq/include/gnuradio/zeromq/pub_sink.h b/gr-zeromq/include/gnuradio/zeromq/pub_sink.h index d9410c48cf..073c366065 100644 --- a/gr-zeromq/include/gnuradio/zeromq/pub_sink.h +++ b/gr-zeromq/include/gnuradio/zeromq/pub_sink.h @@ -37,7 +37,7 @@ namespace zeromq { class ZEROMQ_API pub_sink : virtual public gr::sync_block { public: - typedef boost::shared_ptr<pub_sink> sptr; + typedef std::shared_ptr<pub_sink> sptr; /*! * \brief Return a shared_ptr to a new instance of zeromq::pub_sink. diff --git a/gr-zeromq/include/gnuradio/zeromq/pull_msg_source.h b/gr-zeromq/include/gnuradio/zeromq/pull_msg_source.h index c62cc4c50e..5a4e1a88a2 100644 --- a/gr-zeromq/include/gnuradio/zeromq/pull_msg_source.h +++ b/gr-zeromq/include/gnuradio/zeromq/pull_msg_source.h @@ -28,7 +28,7 @@ namespace zeromq { class ZEROMQ_API pull_msg_source : virtual public gr::block { public: - typedef boost::shared_ptr<pull_msg_source> sptr; + typedef std::shared_ptr<pull_msg_source> sptr; /*! * \brief Return a shared_ptr to a new instance of gr::zeromq::pull_msg_source. diff --git a/gr-zeromq/include/gnuradio/zeromq/pull_source.h b/gr-zeromq/include/gnuradio/zeromq/pull_source.h index 90c280c4ba..39d3ab02c2 100644 --- a/gr-zeromq/include/gnuradio/zeromq/pull_source.h +++ b/gr-zeromq/include/gnuradio/zeromq/pull_source.h @@ -28,7 +28,7 @@ namespace zeromq { class ZEROMQ_API pull_source : virtual public gr::sync_block { public: - typedef boost::shared_ptr<pull_source> sptr; + typedef std::shared_ptr<pull_source> sptr; /*! * \brief Return a shared_ptr to a new instance of gr::zeromq::pull_source. diff --git a/gr-zeromq/include/gnuradio/zeromq/push_msg_sink.h b/gr-zeromq/include/gnuradio/zeromq/push_msg_sink.h index c7641d5c31..41c5fba042 100644 --- a/gr-zeromq/include/gnuradio/zeromq/push_msg_sink.h +++ b/gr-zeromq/include/gnuradio/zeromq/push_msg_sink.h @@ -30,7 +30,7 @@ namespace zeromq { class ZEROMQ_API push_msg_sink : virtual public gr::block { public: - typedef boost::shared_ptr<push_msg_sink> sptr; + typedef std::shared_ptr<push_msg_sink> sptr; /*! * \brief Return a shared_ptr to a new instance of gr::zeromq::push_msg_sink diff --git a/gr-zeromq/include/gnuradio/zeromq/push_sink.h b/gr-zeromq/include/gnuradio/zeromq/push_sink.h index 5721eae7b6..935df07192 100644 --- a/gr-zeromq/include/gnuradio/zeromq/push_sink.h +++ b/gr-zeromq/include/gnuradio/zeromq/push_sink.h @@ -32,7 +32,7 @@ namespace zeromq { class ZEROMQ_API push_sink : virtual public gr::sync_block { public: - typedef boost::shared_ptr<push_sink> sptr; + typedef std::shared_ptr<push_sink> sptr; /*! * \brief Return a shared_ptr to a new instance of gr::zeromq::push_sink diff --git a/gr-zeromq/include/gnuradio/zeromq/rep_msg_sink.h b/gr-zeromq/include/gnuradio/zeromq/rep_msg_sink.h index 3786d5f4da..4c3d54adac 100644 --- a/gr-zeromq/include/gnuradio/zeromq/rep_msg_sink.h +++ b/gr-zeromq/include/gnuradio/zeromq/rep_msg_sink.h @@ -30,7 +30,7 @@ namespace zeromq { class ZEROMQ_API rep_msg_sink : virtual public gr::block { public: - typedef boost::shared_ptr<rep_msg_sink> sptr; + typedef std::shared_ptr<rep_msg_sink> sptr; /*! * \brief Return a shared_ptr to a new instance of zeromq::rep_msg_sink. diff --git a/gr-zeromq/include/gnuradio/zeromq/rep_sink.h b/gr-zeromq/include/gnuradio/zeromq/rep_sink.h index 16ac77e701..20f4e46823 100644 --- a/gr-zeromq/include/gnuradio/zeromq/rep_sink.h +++ b/gr-zeromq/include/gnuradio/zeromq/rep_sink.h @@ -30,7 +30,7 @@ namespace zeromq { class ZEROMQ_API rep_sink : virtual public gr::sync_block { public: - typedef boost::shared_ptr<rep_sink> sptr; + typedef std::shared_ptr<rep_sink> sptr; /*! * \brief Return a shared_ptr to a new instance of zeromq::rep_sink. diff --git a/gr-zeromq/include/gnuradio/zeromq/req_msg_source.h b/gr-zeromq/include/gnuradio/zeromq/req_msg_source.h index 197fd2db43..09d316004a 100644 --- a/gr-zeromq/include/gnuradio/zeromq/req_msg_source.h +++ b/gr-zeromq/include/gnuradio/zeromq/req_msg_source.h @@ -28,7 +28,7 @@ namespace zeromq { class ZEROMQ_API req_msg_source : virtual public gr::block { public: - typedef boost::shared_ptr<req_msg_source> sptr; + typedef std::shared_ptr<req_msg_source> sptr; /*! * \brief Return a shared_ptr to a new instance of zeromq::req_msg_source. diff --git a/gr-zeromq/include/gnuradio/zeromq/req_source.h b/gr-zeromq/include/gnuradio/zeromq/req_source.h index 498a245445..3ce39251bf 100644 --- a/gr-zeromq/include/gnuradio/zeromq/req_source.h +++ b/gr-zeromq/include/gnuradio/zeromq/req_source.h @@ -28,7 +28,7 @@ namespace zeromq { class ZEROMQ_API req_source : virtual public gr::sync_block { public: - typedef boost::shared_ptr<req_source> sptr; + typedef std::shared_ptr<req_source> sptr; /*! * \brief Return a shared_ptr to a new instance of zeromq::req_source. diff --git a/gr-zeromq/include/gnuradio/zeromq/sub_msg_source.h b/gr-zeromq/include/gnuradio/zeromq/sub_msg_source.h index 52502def92..3d0cdc525b 100644 --- a/gr-zeromq/include/gnuradio/zeromq/sub_msg_source.h +++ b/gr-zeromq/include/gnuradio/zeromq/sub_msg_source.h @@ -28,7 +28,7 @@ namespace zeromq { class ZEROMQ_API sub_msg_source : virtual public gr::block { public: - typedef boost::shared_ptr<sub_msg_source> sptr; + typedef std::shared_ptr<sub_msg_source> sptr; /*! * \brief Return a shared_ptr to a new instance of gr::zeromq::sub_msg_source. diff --git a/gr-zeromq/include/gnuradio/zeromq/sub_source.h b/gr-zeromq/include/gnuradio/zeromq/sub_source.h index c2be39e615..a5d3d56daa 100644 --- a/gr-zeromq/include/gnuradio/zeromq/sub_source.h +++ b/gr-zeromq/include/gnuradio/zeromq/sub_source.h @@ -28,7 +28,7 @@ namespace zeromq { class ZEROMQ_API sub_source : virtual public gr::sync_block { public: - typedef boost::shared_ptr<sub_source> sptr; + typedef std::shared_ptr<sub_source> sptr; /*! * \brief Return a shared_ptr to a new instance of gr::zeromq::sub_source. |