From 7a9169fe8cca1cb378be0d0d403e03a338ffbfda Mon Sep 17 00:00:00 2001
From: Thomas Habets <thomas@habets.se>
Date: Sat, 14 Mar 2020 12:01:44 +0000
Subject: 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>`.
---
 gnuradio-runtime/lib/buffer.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'gnuradio-runtime/lib/buffer.cc')

diff --git a/gnuradio-runtime/lib/buffer.cc b/gnuradio-runtime/lib/buffer.cc
index 7564741934..91cc43818b 100644
--- a/gnuradio-runtime/lib/buffer.cc
+++ b/gnuradio-runtime/lib/buffer.cc
@@ -47,7 +47,7 @@ static long s_buffer_reader_count = 0;
  both want pointers to each other, and unless we do something, we'll
  never delete any of them because of the circular structure.
  They'll always have a reference count of at least one.  We could
- use boost::weak_ptr's from gr::buffer to gr::buffer_reader but that
+ use std::weak_ptr's from gr::buffer to gr::buffer_reader but that
  introduces it's own problems.  (gr::buffer_reader's destructor needs
  to call gr::buffer::drop_reader, but has no easy way to get a
  shared_ptr to itself.)
-- 
cgit v1.2.3