Skip to content

🐛 Small fixes for CX_VALUE and friends #247

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

Merged
merged 1 commit into from
Jul 10, 2025
Merged

Conversation

elbeno
Copy link
Contributor

@elbeno elbeno commented Jul 10, 2025

Problem:

  • CX_VALUE without a capture clause is important for use cases where the lambda has to be default constructible.
  • Naming the function type in the CX_WRAP macro causes shadowing warnings.

Solution:

  • Remove the default capture clause from CX_VALUE.
  • Leave the function unnamed in CX_WRAP.

Problem:
- `CX_VALUE` without a capture clause is important for use cases where the
  lambda has to be default constructible.
- Naming the function type in the `CX_WRAP` macro causes shadowing warnings.

Solution:
- Remove the default capture clause from `CX_VALUE`.
- Leave the function unnamed in `CX_WRAP`.
@lukevalenty lukevalenty enabled auto-merge July 10, 2025 22:24
@lukevalenty lukevalenty merged commit b325dd5 into intel:main Jul 10, 2025
42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants