Fix for PR 1367

This commit is contained in:
John Wellbelove 2026-03-28 12:03:12 +00:00
parent b83cef5668
commit 03ca3c817e

View File

@ -96,7 +96,7 @@ namespace etl
struct nulltype {};
// For N type pairs.
template <size_t Id, typename T1, typename... TRest>
template <int Id, typename T1, typename... TRest>
struct type_from_id_helper
{
using type = typename etl::conditional<Id == T1::Id,
@ -105,7 +105,7 @@ namespace etl
};
// Specialisation for 1 type pair.
template <size_t Id, typename T1>
template <int Id, typename T1>
struct type_from_id_helper<Id, T1>
{
using type = typename etl::conditional<Id == T1::Id,