kfrlib / kfr

Fast, modern C++ DSP framework, FFT, Sample Rate Conversion, FIR/IIR/Biquad Filters (SSE, AVX, AVX-512, ARM NEON)
https://www.kfrlib.com
GNU General Public License v2.0
1.64k stars 252 forks source link

clamp overload error #138

Closed mipac closed 1 year ago

mipac commented 2 years ago

The clamp function used with 2 arg raise error:

error: no matching function for call to 'clamp' return intrinsics::clamp(static_cast<Tout>(x), static_cast<Tout>(hi));

when call with explicit lo and hi, the compilation is ok

dancazarin commented 1 year ago

Fixed in KFR 5