diff options
author | Josh Blum | 2012-10-08 00:34:13 -0700 |
---|---|---|
committer | Johnathan Corgan | 2012-10-13 11:50:37 -0700 |
commit | 5b97216d8d62580b4c9224fb2ad630ade61c0a4f (patch) | |
tree | 5c30ac7f8c45e6d5d1763856e8e7fbaad9e0d8de /gr-uhd/examples | |
parent | a3dfc8b6193b316c95125aafa5c9de1fcf1b6fe3 (diff) | |
download | gnuradio-5b97216d8d62580b4c9224fb2ad630ade61c0a4f.tar.gz gnuradio-5b97216d8d62580b4c9224fb2ad630ade61c0a4f.tar.bz2 gnuradio-5b97216d8d62580b4c9224fb2ad630ade61c0a4f.zip |
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.
Diffstat (limited to 'gr-uhd/examples')
-rw-r--r-- | gr-uhd/examples/c++/tag_sink_demo.h | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |