Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please consider the following formatting changes to #12836 #276

Open
wants to merge 1 commit into
base: pr12836
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Framework/Foundation/include/Framework/Pack.h
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,11 @@ inline constexpr bool has_type_conditional_v = has_type_conditional<Condition, T
template <typename T, typename... Ts>
consteval std::size_t has_type_at(pack<Ts...> const&)
{
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...>)
{
return ((std::is_same_v<T, Ts> ? Is + 1 : 0) + ...);
}(std::make_index_sequence<sizeof...(Ts)>());
}
(std::make_index_sequence<sizeof...(Ts)>());
if constexpr (count == 0) {
return sizeof...(Ts) + 1;
} else {
Expand Down
Loading