Skip to content
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

function_ref should not always reference qualify parameters #15

Closed
wants to merge 1 commit into from

Conversation

davidstone
Copy link

By accepting Args&&..., a function that accepts its arguments by value is required to accept only rvalues. Instead, we should accept Args... (the exact argument types listed in the signature), which allows by-value parameters to copy from lvalue arguments.

By accepting `Args&&...`, a function that accepts its arguments by value is required to accept only rvalues. Instead, we should accept `Args...` (the exact argument types listed in the signature), which allows by-value parameters to copy from lvalue arguments.
@pdimov
Copy link
Member

pdimov commented Oct 10, 2024

This change is probably correct but it should include a corresponding test (that fails before the change and passes after it.)

@cmazakas
Copy link
Member

This has been addressed by #17

Let me know if I missed anything or if we need to re-open this. Thank you, David.

@cmazakas cmazakas closed this Dec 17, 2024
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.

3 participants