fair-acc / gnuradio4

Prototype implementations for a more compile-time efficient flowgraph API
Other
31 stars 12 forks source link

Settings.hpp doesn't take into account complex types #354

Closed daniestevez closed 3 months ago

daniestevez commented 4 months ago

It seems that Settings.hpp doesn't take into account complex types. std::arithmetic_type_v<T> is false when T is std::complex<float> or std::complex<double> (see godbolt example). This prevents passing a vector of complex numbers to a block using its property_map constructor (which is a common need for some blocks, such as FIRs with complex taps and vector sources).