Closed mormj closed 2 years ago
The following test fails when templated for std::complex
TYPED_TEST(PmtVectorFixture, PmtVectorNull) { auto pmtw = pmt_wrap(pmt_vector<TypeParam>({})); }
The failure is deep in the flatbuffers code
qa_pmt_vector: /usr/local/include/flatbuffers/flatbuffers.h:351: flatbuffers::Vector<T>::mutable_return_type flatbuffers::Vector<T>::GetMutableObject(flatbuffers::uoffset_t) const [with T = const pmtf::Complex64*; flatbuffers::Vector<T>::mutable_return_type = pmtf::Complex64*; flatbuffers::uoffset_t = unsigned int]: Assertion `i < size()' failed.
So there is a problem with pmt wrapping an empty pmt_vector, but only with std::complex
This works fine:
auto pmtv = pmt_vector<TypeParam>({});
closed with https://github.com/gnuradio/pmt/pull/17
The following test fails when templated for std::complex
The failure is deep in the flatbuffers code
So there is a problem with pmt wrapping an empty pmt_vector, but only with std::complex
This works fine: