kfr

Fast, modern C++ DSP framework, FFT, Sample Rate Conversion, FIR/IIR/Biquad Filters (SSE, AVX, AVX-512, ARM NEON)
Log | Files | Refs | README

commit a94625fe74b0450870e58f1a85cfcfc0d7b5628e
parent 03abf3380a4bc8a0e5101cd8c3c05161cc6151c2
Author: d.levin256@gmail.com <d.levin256@gmail.com>
Date:   Tue,  6 Dec 2022 00:23:46 +0000

Fix ambiguous assign operator for univector

Diffstat:
Minclude/kfr/base/univector.hpp | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/include/kfr/base/univector.hpp b/include/kfr/base/univector.hpp @@ -450,6 +450,11 @@ struct univector<T, tag_dynamic_vector> } using univector_base<T, univector, is_vec_element<T>>::operator=; univector& operator=(const univector&) = default; + univector& operator=(univector&&) = default; + KFR_MEM_INTRINSIC univector& operator=(univector& input) + { + return operator=(std::as_const(input)); + } template <typename Input, KFR_ACCEPT_EXPRESSIONS(Input)> KFR_MEM_INTRINSIC univector& operator=(Input&& input) {