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 e5e540d28312c3175906e4a88c2a36af0afc6feb
parent 07c47d3fc9ccf9f4fbd936a62f2d9f280ef8cd5c
Author: [email protected] <[email protected]>
Date:   Wed,  9 Nov 2016 10:40:56 +0300

bind_expression: remove internal::arg<>

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

diff --git a/include/kfr/base/expression.hpp b/include/kfr/base/expression.hpp @@ -371,13 +371,11 @@ struct expression_function : expression_base<arg<Args>...> using T = value_type; expression_function(Fn&& fn, arg<Args>&&... args) noexcept - : expression_base<arg<Args>...>(std::forward<arg<Args>>(args)...), - fn(std::forward<Fn>(fn)) + : expression_base<arg<Args>...>(std::forward<arg<Args>>(args)...), fn(std::forward<Fn>(fn)) { } expression_function(const Fn& fn, arg<Args>&&... args) noexcept - : expression_base<arg<Args>...>(std::forward<arg<Args>>(args)...), - fn(fn) + : expression_base<arg<Args>...>(std::forward<arg<Args>>(args)...), fn(fn) { } template <size_t N> @@ -412,11 +410,10 @@ CMT_INLINE internal::expression_scalar<T, N> scalar(const vec<T, N>& val) } template <typename Fn, typename... Args> -CMT_INLINE internal::expression_function<decay<Fn>, internal::arg<Args>...> bind_expression(Fn&& fn, - Args&&... args) +CMT_INLINE internal::expression_function<decay<Fn>, Args...> bind_expression(Fn&& fn, Args&&... args) { - return internal::expression_function<decay<Fn>, internal::arg<Args>...>(std::forward<Fn>(fn), - std::forward<Args>(args)...); + return internal::expression_function<decay<Fn>, Args...>(std::forward<Fn>(fn), + std::forward<Args>(args)...); } /** * @brief Construct a new expression using the same function as in @c e and new arguments