summaryrefslogtreecommitdiff
path: root/gr-digital/lib
diff options
context:
space:
mode:
authorMarcus Müller <mmueller@gnuradio.org>2021-10-19 20:44:11 +0200
committermormj <34754695+mormj@users.noreply.github.com>2021-10-28 17:23:25 -0400
commit041f44e809f39d0567f6f191284d555cd6d08de2 (patch)
tree053b622cd4f9fef7c7956dd981dd5a7103249b39 /gr-digital/lib
parent50d00f108c3ad62cd7beed6a4cbfdf4f0321c5aa (diff)
Replace boost::any with std::any
This is a modernization possible through C++17 Fixes #4780 Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
Diffstat (limited to 'gr-digital/lib')
-rw-r--r--gr-digital/lib/constellation_receiver_cb_impl.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/gr-digital/lib/constellation_receiver_cb_impl.cc b/gr-digital/lib/constellation_receiver_cb_impl.cc
index f11de55181..1d2f614035 100644
--- a/gr-digital/lib/constellation_receiver_cb_impl.cc
+++ b/gr-digital/lib/constellation_receiver_cb_impl.cc
@@ -18,9 +18,7 @@
#include <gnuradio/expj.h>
#include <gnuradio/io_signature.h>
#include <gnuradio/math.h>
-
-#include <boost/format.hpp>
-
+#include <any>
#include <stdexcept>
namespace gr {
@@ -90,9 +88,9 @@ void constellation_receiver_cb_impl::handle_set_constellation(
pmt::pmt_t constellation_pmt)
{
if (pmt::is_any(constellation_pmt)) {
- boost::any constellation_any = pmt::any_ref(constellation_pmt);
+ std::any constellation_any = pmt::any_ref(constellation_pmt);
constellation_sptr constellation =
- boost::any_cast<constellation_sptr>(constellation_any);
+ std::any_cast<constellation_sptr>(constellation_any);
set_constellation(constellation);
} else {
GR_LOG_ERROR(d_logger, "Received constellation that is not a PMT any; skipping.");