From 5b97216d8d62580b4c9224fb2ad630ade61c0a4f Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Mon, 8 Oct 2012 00:34:13 -0700 Subject: uhd: fix pmt tuple ref namespace issue The pmt_tuple_ref should be prefixed with pmt:: just like all of the other calls. I am uncertain as to why this is compiling (we are not using namespace pmt), unless there is a hidden using namespace somewhere in a global header. But it will be good to get the code right as a general purpose example. --- gr-uhd/examples/c++/tag_sink_demo.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gr-uhd/examples') diff --git a/gr-uhd/examples/c++/tag_sink_demo.h b/gr-uhd/examples/c++/tag_sink_demo.h index 207cc47e6..5417bd324 100644 --- a/gr-uhd/examples/c++/tag_sink_demo.h +++ b/gr-uhd/examples/c++/tag_sink_demo.h @@ -55,8 +55,8 @@ public: const pmt::pmt_t &value = rx_time_tag.value; std::cout << boost::format("Full seconds %u, Frac seconds %f, abs sample offset %u") - % pmt::pmt_to_uint64(pmt_tuple_ref(value, 0)) - % pmt::pmt_to_double(pmt_tuple_ref(value, 1)) + % pmt::pmt_to_uint64(pmt::pmt_tuple_ref(value, 0)) + % pmt::pmt_to_double(pmt::pmt_tuple_ref(value, 1)) % offset << std::endl; } -- cgit