From 6b1cacf2337236032cdba9fb446be2cd64a5357d Mon Sep 17 00:00:00 2001 From: Basit Ayantunde Date: Thu, 5 Dec 2024 23:47:50 +0000 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20fixed=20index=5Fapply's=20?= =?UTF-8?q?tparam=20argument=20deduction?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ashura/std/tuple.h | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/ashura/std/tuple.h b/ashura/std/tuple.h index 8eae6f1d..6644ea05 100644 --- a/ashura/std/tuple.h +++ b/ashura/std/tuple.h @@ -64,22 +64,15 @@ constexpr decltype(auto) apply(F && f, Tuple && t) template constexpr decltype(auto) impl_index_apply(F && f, std::index_sequence) { - return f.template operator()(); + return static_cast(f).template operator()(); } -template +template constexpr decltype(auto) index_apply(F && f) { return impl_index_apply(static_cast(f), std::make_index_sequence{}); } -template -constexpr decltype(auto) zip_apply(F && f, Tuples &&... tuples) -{ - // [ ] impl - // apply over Index -} - template constexpr decltype(auto) impl_fold_reduce(Tuple & fns, In &&... in) {