diff --git a/Framework/Foundation/include/Framework/Pack.h b/Framework/Foundation/include/Framework/Pack.h index eb105480ef9f0..7244e8fefd730 100644 --- a/Framework/Foundation/include/Framework/Pack.h +++ b/Framework/Foundation/include/Framework/Pack.h @@ -200,9 +200,11 @@ inline constexpr bool has_type_conditional_v = has_type_conditional consteval std::size_t has_type_at(pack const&) { - constexpr std::size_t count = [](std::index_sequence) { + constexpr std::size_t count = [](std::index_sequence) + { return ((std::is_same_v ? Is + 1 : 0) + ...); - }(std::make_index_sequence()); + } + (std::make_index_sequence()); if constexpr (count == 0) { return sizeof...(Ts) + 1; } else {