[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Order of tags returned by gr::block::get_tags_in_
From: |
Martin Braun |
Subject: |
Re: [Discuss-gnuradio] Order of tags returned by gr::block::get_tags_in_range()/window() |
Date: |
Thu, 25 Jun 2015 09:27:36 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 |
On 25.06.2015 07:57, Jon Szymaniak wrote:
> Thank you very much for the additional clarification and details, Doug
> and Tom!
>
> So from what you've said, the ordering is an implementation-specific
> detail that an API user shall not assume. To ensure compatibility with
> past, present, and future GNU Radio versions, the API user is
> responsible for sorting the returned vector, if that's required. Do you
> agree?
Jon,
Tom *did* say that tags are sorted since the multimap change. To be both
forward- and mostly backward-compatible, what you're saying is true.
I'm wondering if we might add a #define for the multimap change... that
way, one could conditionally compile in a std::sort if required.
Cheers,
Martin