Skip to content

__aggregate_all_of Internal utility to recursively apply a predicate to aggregate members - #8347

Merged
fbusato merged 7 commits into
NVIDIA:mainfrom
fbusato:aggregate_members_all_of
Apr 29, 2026
Merged

fbusato merged 7 commits into
NVIDIA:mainfrom
fbusato:aggregate_members_all_of

Conversation

@fbusato

@fbusato fbusato commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

Description

__aggregate_all_of is useful to extract properties for custom traits.

Extract from:

@fbusato fbusato self-assigned this Apr 9, 2026
@fbusato fbusato added this to CCCL Apr 9, 2026
@fbusato
fbusato requested a review from a team as a code owner April 9, 2026 19:40
@fbusato fbusato added the libcu++ For all items related to libcu++ label Apr 9, 2026
@fbusato
fbusato requested a review from wmaxey April 9, 2026 19:40
@github-project-automation github-project-automation Bot moved this to Todo in CCCL Apr 9, 2026
@cccl-authenticator-app cccl-authenticator-app Bot moved this from Todo to In Review in CCCL Apr 9, 2026
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@fbusato

fbusato commented Apr 10, 2026

Copy link
Copy Markdown
Contributor Author

@miscco @davebayer @gevtushenko considering the complexity, the impact on compile time, and a couple of compatibility problems with MSVC, I'm not 100% sure it worth to add it.

details:

  • compile time: the trait adds an initializer one by one, until it reaches the maximum.
  • MSVC doesn't support arrays and nested structures.

@wmaxey

wmaxey commented Apr 10, 2026 •

Copy link
Copy Markdown
Member
* MSVC doesn't support arrays and nested structures.

I remember vaguely finding this trick before and decided to write it off based on this. I think we should wait for proper reflection unless this immediately solves problems of our own making internally where we can control what goes through the machinery.

If we can get a guarantee that this will only be used with well supported input types, then I'd consider approving this. Otherwise leaving a footgun laying around concerns me.

@fbusato fbusato moved this from In Review to Blocked in CCCL Apr 21, 2026
@github-actions

This comment has been minimized.

@fbusato fbusato moved this from Blocked to In Review in CCCL Apr 22, 2026
@fbusato
fbusato requested a review from miscco April 22, 2026 22:21
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@miscco miscco left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved to inline variables

@github-actions

Copy link
Copy Markdown
Contributor

🥳 CI Workflow Results

🟩 Finished in 2h 58m: Pass: 100%/108 | Total: 1d 01h | Max: 48m 04s | Hits: 99%/287437

See results here.

@fbusato
fbusato merged commit 24606fe into NVIDIA:main Apr 29, 2026
127 checks passed
@github-project-automation github-project-automation Bot moved this from In Review to Done in CCCL Apr 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

libcu++ For all items related to libcu++

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants