From edad83299eb17bd895ec9f13f7dd3450334cb0c9 Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Sun, 27 Sep 2026 10:35:58 +0100 Subject: [PATCH] Replaced pointer table with a recursive visitor call to reduce compiled code size. --- include/etl/private/variant_variadic.h | 92 +++++++++++++++----------- 1 file changed, 53 insertions(+), 39 deletions(-) diff --git a/include/etl/private/variant_variadic.h b/include/etl/private/variant_variadic.h index 4161aa31..cfcf0a08 100644 --- a/include/etl/private/variant_variadic.h +++ b/include/etl/private/variant_variadic.h @@ -2093,8 +2093,8 @@ namespace etl //*************************************************************************** namespace private_variant { - template - static ETL_CONSTEXPR14 TRet do_visit_single(TCallable&& f, TVariant&& v, TNext&&, TVariants&&... vs); + template + static ETL_CONSTEXPR14 TReturn do_visit_single(TCallable&& f, TVariant&& v, TNext&&, TVariants&&... vs); //*************************************************************************** /// Dummy-struct used to indicate that the return type should be auto-deduced @@ -2145,8 +2145,8 @@ namespace etl using type = common_type_t >...>; }; - template