summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/lib/pmt/qa_pmt_prims.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gnuradio-runtime/lib/pmt/qa_pmt_prims.cc')
-rw-r--r--gnuradio-runtime/lib/pmt/qa_pmt_prims.cc15
1 files changed, 7 insertions, 8 deletions
diff --git a/gnuradio-runtime/lib/pmt/qa_pmt_prims.cc b/gnuradio-runtime/lib/pmt/qa_pmt_prims.cc
index 7219f6f099..f74dd2f7f9 100644
--- a/gnuradio-runtime/lib/pmt/qa_pmt_prims.cc
+++ b/gnuradio-runtime/lib/pmt/qa_pmt_prims.cc
@@ -12,7 +12,6 @@
#include <pmt/api.h> //reason: suppress warnings
#include <boost/format.hpp>
#include <boost/test/unit_test.hpp>
-#include <any>
#include <cstring>
#include <sstream>
@@ -456,9 +455,9 @@ std::ostream& operator<<(std::ostream& os, const foo obj)
BOOST_AUTO_TEST_CASE(test_any)
{
- std::any a0;
- std::any a1;
- std::any a2;
+ boost::any a0;
+ boost::any a1;
+ boost::any a2;
a0 = std::string("Hello!");
a1 = 42;
@@ -469,11 +468,11 @@ BOOST_AUTO_TEST_CASE(test_any)
pmt::pmt_t p2 = pmt::make_any(a2);
BOOST_CHECK_EQUAL(std::string("Hello!"),
- std::any_cast<std::string>(pmt::any_ref(p0)));
+ boost::any_cast<std::string>(pmt::any_ref(p0)));
- BOOST_CHECK_EQUAL(42, std::any_cast<int>(pmt::any_ref(p1)));
+ BOOST_CHECK_EQUAL(42, boost::any_cast<int>(pmt::any_ref(p1)));
- BOOST_CHECK_EQUAL(foo(3.250, 21), std::any_cast<foo>(pmt::any_ref(p2)));
+ BOOST_CHECK_EQUAL(foo(3.250, 21), boost::any_cast<foo>(pmt::any_ref(p2)));
}
// ------------------------------------------------------------------------
@@ -492,7 +491,7 @@ BOOST_AUTO_TEST_CASE(test_msg_accepter)
{
pmt::pmt_t sym = pmt::mp("my-symbol");
- std::any a0;
+ boost::any a0;
a0 = std::string("Hello!");
pmt::pmt_t p0 = pmt::make_any(a0);