From 041f44e809f39d0567f6f191284d555cd6d08de2 Mon Sep 17 00:00:00 2001 From: Marcus Müller <mmueller@gnuradio.org> Date: Tue, 19 Oct 2021 20:44:11 +0200 Subject: Replace boost::any with std::any MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is a modernization possible through C++17 Fixes #4780 Signed-off-by: Marcus Müller <mmueller@gnuradio.org> --- gnuradio-runtime/include/pmt/pmt.h | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'gnuradio-runtime/include/pmt/pmt.h') diff --git a/gnuradio-runtime/include/pmt/pmt.h b/gnuradio-runtime/include/pmt/pmt.h index b55cc57d9f..7afdb92288 100644 --- a/gnuradio-runtime/include/pmt/pmt.h +++ b/gnuradio-runtime/include/pmt/pmt.h @@ -12,8 +12,8 @@ #define INCLUDED_PMT_H #include <pmt/api.h> -#include <boost/any.hpp> #include <boost/noncopyable.hpp> +#include <any> #include <complex> #include <cstdint> #include <iosfwd> @@ -664,10 +664,9 @@ PMT_API pmt_t dict_values(pmt_t dict); /* * ------------------------------------------------------------------------ - * Any (wraps boost::any -- can be used to wrap pretty much anything) + * Any (wraps std::any -- can be used to wrap pretty much anything) * * Cannot be serialized or used across process boundaries. - * See http://www.boost.org/doc/html/any.html * ------------------------------------------------------------------------ */ @@ -675,13 +674,13 @@ PMT_API pmt_t dict_values(pmt_t dict); PMT_API bool is_any(pmt_t obj); //! make an any -PMT_API pmt_t make_any(const boost::any& any); +PMT_API pmt_t make_any(const std::any& any); -//! Return underlying boost::any -PMT_API boost::any any_ref(pmt_t obj); +//! Return underlying std::any +PMT_API std::any any_ref(pmt_t obj); //! Store \p any in \p obj -PMT_API void any_set(pmt_t obj, const boost::any& any); +PMT_API void any_set(pmt_t obj, const std::any& any); /* -- cgit v1.2.3