summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/lib/block_registry.cc
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 /gnuradio-runtime/lib/block_registry.cc
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 'gnuradio-runtime/lib/block_registry.cc')
-rw-r--r--gnuradio-runtime/lib/block_registry.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gnuradio-runtime/lib/block_registry.cc b/gnuradio-runtime/lib/block_registry.cc
index a32c0e6801..9ba79c924a 100644
--- a/gnuradio-runtime/lib/block_registry.cc
+++ b/gnuradio-runtime/lib/block_registry.cc
@@ -13,6 +13,7 @@
#include <gnuradio/block_detail.h>
#include <gnuradio/block_registry.h>
#include <gnuradio/tpb_detail.h>
+#include <any>
gr::block_registry global_block_registry;
@@ -96,7 +97,7 @@ basic_block_sptr block_registry::block_lookup(pmt::pmt_t symbol)
if (pmt::eq(ref, pmt::PMT_NIL)) {
throw std::runtime_error("block lookup failed! block not found!");
}
- basic_block* blk = boost::any_cast<basic_block*>(pmt::any_ref(ref));
+ basic_block* blk = std::any_cast<basic_block*>(pmt::any_ref(ref));
return blk->shared_from_this();
}