mirror of
https://github.com/ETLCPP/etl.git
synced 2026-10-28 18:07:10 +08:00
Fix for PR 1367
This commit is contained in:
parent
b83cef5668
commit
03ca3c817e
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user