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 800c16fddc3e083720db9801f62c8bcea685a11a
parent aaad724e723634712bd8e25492a11943446c9333
Author: [email protected] <[email protected]>
Date:   Thu, 20 Feb 2020 20:54:20 +0000

Fix is_invocable_r fallback

Diffstat:
Minclude/kfr/cometa.hpp | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/kfr/cometa.hpp b/include/kfr/cometa.hpp @@ -586,13 +586,13 @@ struct is_invocable_impl<Fn, ctypes_t<Args...>, void_t<decltype(std::declval<Fn> { }; -template <typename Fn, typename Ret, typename Args, typename enable = void> +template <typename Ret, typename Fn, typename Args, typename enable = void> struct is_invocable_r_impl : std::false_type { }; -template <typename Fn, typename Ret, typename... Args> -struct is_invocable_r_impl<Fn, Ret, ctypes_t<Args...>, +template <typename Ret, typename Fn, typename... Args> +struct is_invocable_r_impl<Ret, Fn, ctypes_t<Args...>, void_t<decltype(std::declval<Fn>()(std::declval<Args>()...))>> { static constexpr bool value = is_convertible<decltype(std::declval<Fn>()(std::declval<Args>()...)), Ret>;