We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10cafb7 commit 25239cbCopy full SHA for 25239cb
Framework/Foundation/include/Framework/Pack.h
@@ -200,9 +200,11 @@ inline constexpr bool has_type_conditional_v = has_type_conditional<Condition, T
200
template <typename T, typename... Ts>
201
consteval std::size_t has_type_at(pack<Ts...> const&)
202
{
203
- constexpr std::size_t count = []<std::size_t... Is>(std::index_sequence<Is...>) {
+ constexpr std::size_t count = []<std::size_t... Is>(std::index_sequence<Is...>)
204
+ {
205
return ((std::is_same_v<T, Ts> ? Is + 1 : 0) + ...);
- }(std::make_index_sequence<sizeof...(Ts)>());
206
+ }
207
+ (std::make_index_sequence<sizeof...(Ts)>());
208
if constexpr (count == 0) {
209
return sizeof...(Ts) + 1;
210
} else {
0 commit comments