Skip to content

Commit

Permalink
DPL: check for the maximum number of members supported for tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
ktf committed Jun 26, 2024
1 parent 9d404f5 commit baba242
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Framework/Foundation/include/Framework/StructToTuple.h
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ auto homogeneous_apply_refs(L l, T&& object)
using type = std::decay_t<T>;
constexpr int nesting = B ? 1 : 0;
constexpr unsigned long numElements = brace_constructible_size<type>() - nesting;
static_assert(numElements < 99, "Too many elements in the struct");
// clang-format off
if DPL_HOMOGENEOUS_APPLY_ENTRY (9, 9)
else if DPL_HOMOGENEOUS_APPLY_ENTRY (9, 8)
Expand Down

0 comments on commit baba242

Please sign in to comment.