From f6b16b0e996818fb4cba93226f490e9a53fe48ed Mon Sep 17 00:00:00 2001 From: hgutsche Date: Mon, 17 May 2021 15:37:24 -0400 Subject: [PATCH] Tiny first step in removing ArgsTuple and other tuples and replace by std::array. fix echelon level to 2. There is no plan to ever implement higher levels in this way and version. Not quite supported anyways. using array probably not using much more space and probably even faster than use of tuples. recursion can be replaced by loops which are typically faster. --- src/core/config.h | 2 +- src/core/psym.h | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/core/config.h b/src/core/config.h index e53c041f..64aabf11 100644 --- a/src/core/config.h +++ b/src/core/config.h @@ -34,7 +34,7 @@ //#define PIRANHA_VISIBLE __attribute__ ((visibility("default"))) //#endif -#define PIRANHA_MAX_ECHELON_LEVEL (1) +#define PIRANHA_MAX_ECHELON_LEVEL (2) #endif diff --git a/src/core/psym.h b/src/core/psym.h index 42ddb3c1..d1aa0cf7 100644 --- a/src/core/psym.h +++ b/src/core/psym.h @@ -466,6 +466,13 @@ namespace piranha return vectorPsym; } + + using EvalVectors = std::array> &, PIRANHA_MAX_ECHELON_LEVEL>; // we don't use and/or intend to use anything higher than echeclonLevel 2 + using ArgsVector = std::array; + //EvalVectors args2EvalVectors(ArgsTupleType const & argdTuple) + //{ + + //} } #pragma warning (pop)