From 74ef52853ead756e02c269ef5f37197aefa41fde Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sat, 28 Mar 2026 11:00:59 +0100 Subject: [PATCH] Fix support of negative Id in type_lookup.h: type_from_id --- include/etl/type_lookup.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/etl/type_lookup.h b/include/etl/type_lookup.h index 4eb1c199..0ae1fd26 100644 --- a/include/etl/type_lookup.h +++ b/include/etl/type_lookup.h @@ -84,7 +84,7 @@ namespace etl struct nulltype {}; // For N type pairs. - template + template struct type_from_id_helper { using type = typename etl::conditional + template struct type_from_id_helper { using type = typename etl::conditional struct type_from_id { - using type = typename type_from_id_helper::type; + using type = typename type_from_id_helper::type; static_assert(!(etl::is_same::value), "Invalid id"); };