Skip to content

🐛 Fix make_tuple with function pointers #238

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
Jun 11, 2025
Merged

Conversation

elbeno
Copy link
Contributor

@elbeno elbeno commented Jun 10, 2025

Problem:

  • Passing a function reference to make_tuple does not decay and produce a tuple of a function pointer.

Solution:

  • Use decay instead of remove_cvref.

Problem:
- Passing a function reference to `make_tuple` does not decay and produce a
  tuple of a function pointer.

Solution:
- Use `decay` instead of `remove_cvref`.
Copy link

@nikhilshahani nikhilshahani left a comment

Choose a reason for hiding this comment

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

Making consistent with std::make_tuple.

@elbeno elbeno merged commit 464a6b4 into intel:main Jun 11, 2025
81 of 84 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