Skip to content

make the concepts portability macros slightly more maintainable#5817

Merged
ericniebler merged 5 commits intoNVIDIA:mainfrom
ericniebler:concept-macro-simplification
Sep 10, 2025
Merged

make the concepts portability macros slightly more maintainable#5817
ericniebler merged 5 commits intoNVIDIA:mainfrom
ericniebler:concept-macro-simplification

Conversation

@ericniebler
Copy link
Contributor

@ericniebler ericniebler commented Sep 8, 2025

Description

even i have a hard time maintaining the concepts portability macros, and i wrote them. #5794 forced me to grok the macros again, and i decided to record that knowledge in code comments.

i also found a few ways to make the macros themselves (hopefully) easier to grok.

Checklist

  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@copy-pr-bot
Copy link
Contributor

copy-pr-bot bot commented Sep 8, 2025

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@github-project-automation github-project-automation bot moved this to Todo in CCCL Sep 8, 2025
@cccl-authenticator-app cccl-authenticator-app bot moved this from Todo to In Progress in CCCL Sep 8, 2025
@ericniebler
Copy link
Contributor Author

/ok to test 6cc8ef4

@github-actions

This comment has been minimized.

@ericniebler
Copy link
Contributor Author

/ok to test 6cc8ef4

@github-actions

This comment has been minimized.

#define _CCCL_CONCEPT_REQUIREMENT_SWITCH_typename _CCCL_PP_CASE(TYPENAME)
#define _CCCL_CONCEPT_REQUIREMENT_SWITCH__Same_as _CCCL_PP_CASE(SAME_AS)

// Converts "requires(ARGS...)" to "ARGS..."
Copy link
Contributor

Choose a reason for hiding this comment

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

Loving this 🎉

@ericniebler ericniebler force-pushed the concept-macro-simplification branch from 0d3c077 to 9b82d35 Compare September 9, 2025 17:47
@ericniebler
Copy link
Contributor Author

/ok to test 9874cfc

@github-actions

This comment has been minimized.

@ericniebler ericniebler marked this pull request as ready for review September 9, 2025 17:59
@ericniebler ericniebler requested a review from a team as a code owner September 9, 2025 17:59
@cccl-authenticator-app cccl-authenticator-app bot moved this from In Progress to In Review in CCCL Sep 9, 2025
@ericniebler ericniebler force-pushed the concept-macro-simplification branch from 9874cfc to de70304 Compare September 9, 2025 19:39
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@ericniebler ericniebler force-pushed the concept-macro-simplification branch from 14699e7 to eaa353b Compare September 9, 2025 23:44
@github-actions
Copy link
Contributor

🥳 CI Workflow Results

🟩 Finished in 3h 44m: Pass: 100%/229 | Total: 8d 00h | Max: 3h 35m | Hits: 55%/348748

See results here.

Copy link
Contributor

@davebayer davebayer left a comment

Choose a reason for hiding this comment

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

Looks amazing

@ericniebler ericniebler merged commit cbe0a98 into NVIDIA:main Sep 10, 2025
242 checks passed
@github-project-automation github-project-automation bot moved this from In Review to Done in CCCL Sep 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants