Skip to content

P1317R2 Remove return type deduction in std::apply #7999

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jwakely
Copy link
Member

@jwakely jwakely commented Jun 23, 2025

Fixes #7972

@jwakely
Copy link
Member Author

jwakely commented Jun 23, 2025

I think we should bump __cpp_lib_apply for this.

@jwakely jwakely force-pushed the motions-2025-06-lwg-35 branch 2 times, most recently from 6998833 to 264537b Compare June 23, 2025 18:14
This commit adds "tuple-like<Tuple> is true and" to the definition of
apply_result. LWG noticed this was needed but we were unable to contact
the paper author to make the change in time for plenary.
@jwakely jwakely force-pushed the motions-2025-06-lwg-35 branch from 264537b to a1e2efa Compare June 23, 2025 18:17
@jwakely
Copy link
Member Author

jwakely commented Jun 23, 2025

I think we should bump __cpp_lib_apply for this.

I raised this on mattermost and got agreement. I was going to do it in a fixup commit, but I realised we might want to consider whether to add the macro to <type_traits>. It's currently only in <tuple> (and <version> of course).

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.

[2025-06 LWG Motion 35] P1317R2 Remove return type deduction in std::apply
2 participants