Thursday, June 25, 2015

Re: [Discuss-gnuradio] Order of tags returned by gr::block::get_tags_in_range()/window()

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


_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

No comments:

Post a Comment