Skip to content

🐛 Fix make_tuple with function pointers#238

Merged
elbeno merged 1 commit intointel:mainfrom
elbeno:funcptr-tuple
Jun 11, 2025
Merged

🐛 Fix make_tuple with function pointers#238
elbeno merged 1 commit intointel:mainfrom
elbeno:funcptr-tuple

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
@elbeno elbeno deleted the funcptr-tuple branch October 16, 2025 20:07
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