Skip to content

Fix default argument lowering #1262

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 2 commits into from
Aug 27, 2024
Merged

Fix default argument lowering #1262

merged 2 commits into from
Aug 27, 2024

Conversation

hsutter
Copy link
Owner

@hsutter hsutter commented Aug 27, 2024

There should now be enough test cases to exercise all the places you can put default arguments

Also, only emit Cpp1 lambdas as 'mutable' if there are captures (when it matters) so that pure function expressions are not 'mutable'

Closes #1235

There should now be enough test cases to exercise all the places you can put default arguments

Also, only emit Cpp1 lambdas as 'mutable' if there are captures (when it matters) so that pure function expressions are not 'mutable'

Closes #1235
Signed-off-by: Herb Sutter <herb.sutter@gmail.com>
@hsutter hsutter merged commit 2e23597 into main Aug 27, 2024
46 of 56 checks passed
@hsutter hsutter deleted the fix-default-args branch November 2, 2024 02:48
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.

[QUESTION] how to express this code in CppFront (is it possible)?
1 participant