diff options
author | Josh Morman <jmorman@gnuradio.org> | 2021-11-04 14:27:50 -0400 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2021-11-06 08:24:32 -0400 |
commit | 535bac6bc2409c3cf9e70c0fb62a7f789a5ec6fc (patch) | |
tree | 6505d6322e6c8afa66fe901f879af48d049b2a34 /gnuradio-runtime/lib/pmt/qa_pmt_prims.cc | |
parent | 9b150efbc8a8458d9ed192daed34a7ff4e2948a0 (diff) |
Revert "Replace boost::any with std::any"
This reverts commit ccd28dfbb1504fdc29db267acd8aa3354fe10cd2.
Diffstat (limited to 'gnuradio-runtime/lib/pmt/qa_pmt_prims.cc')
-rw-r--r-- | gnuradio-runtime/lib/pmt/qa_pmt_prims.cc | 15 |
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); |