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 | |
parent | modtool: use prefix path for modtool instead of prefs (diff) | |
download | gnuradio-7a9169fe8cca1cb378be0d0d403e03a338ffbfda.tar.xz gnuradio-7a9169fe8cca1cb378be0d0d403e03a338ffbfda.zip |
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')
-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 470c357f6..6bccc1900 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 d9410c48c..073c36606 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 c62cc4c50..5a4e1a88a 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 90c280c4b..39d3ab02c 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 c7641d5c3..41c5fba04 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 5721eae7b..935df0719 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 3786d5f4d..4c3d54ada 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 16ac77e70..20f4e4682 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 197fd2db4..09d316004 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 498a24544..3ce39251b 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 52502def9..3d0cdc525 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 c2be39e61..a5d3d56da 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. |