Fix building against latest GNU Radio

Replace boost::any by std::any
This commit is contained in:
Carles Fernandez
2021-10-30 05:43:22 +02:00
parent 2fc172c0f0
commit a7a140862b
56 changed files with 448 additions and 95 deletions
+7
View File
@@ -95,6 +95,13 @@ if(USE_BOOST_BIND_PLACEHOLDERS)
)
endif()
if(PMT_USES_BOOST_ANY)
target_compile_definitions(front-end-cal
PRIVATE
-DPMT_USES_BOOST_ANY=1
)
endif()
if(ENABLE_STRIP)
set_target_properties(front-end-cal PROPERTIES LINK_FLAGS "-s")
endif()
+7 -1
View File
@@ -74,6 +74,12 @@
#include <boost/bind/bind.hpp>
#endif
#if PMT_USES_BOOST_ANY
namespace wht = boost;
#else
namespace wht = std;
#endif
#if GFLAGS_OLD_NAMESPACE
namespace gflags
{
@@ -129,7 +135,7 @@ void FrontEndCal_msg_rx::msg_handler_channel_events(const pmt::pmt_t& msg)
rx_message = message;
channel_internal_queue.push(rx_message);
}
catch (const boost::bad_any_cast& e)
catch (const wht::bad_any_cast& e)
{
LOG(WARNING) << "msg_handler_telemetry Bad any cast!\n";
rx_message = 0;