commit a6c3055283c43a7700294ce8fe9898fb5eab69ac
parent 5f840a76141f80343f236a6c147f0e520b071f87
Author: [email protected] <[email protected]>
Date: Mon, 5 Sep 2016 10:51:20 +0300
fir.hpp: Use read function for reading vector
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/kfr/dsp/fir.hpp b/include/kfr/dsp/fir.hpp
@@ -47,11 +47,11 @@ struct expression_short_fir : expression<E1>
static_assert(is_poweroftwo(tapcount), "tapcount must be a power of two");
expression_short_fir(E1&& e1, const array_ref<T>& taps)
- : expression<E1>(std::forward<E1>(e1)), taps(taps), delayline(0)
+ : expression<E1>(std::forward<E1>(e1)), taps(read<tapcount>(taps.data())), delayline(0)
{
}
expression_short_fir(E1&& e1, const array_ref<const T>& taps)
- : expression<E1>(std::forward<E1>(e1)), taps(taps), delayline(0)
+ : expression<E1>(std::forward<E1>(e1)), taps(read<tapcount>(taps.data())), delayline(0)
{
}
template <size_t N>