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

rvalue-ref qualified accessors for value #757

Closed
grisumbras opened this issue Sep 26, 2022 · 2 comments · Fixed by #784
Closed

rvalue-ref qualified accessors for value #757

grisumbras opened this issue Sep 26, 2022 · 2 comments · Fixed by #784

Comments

@grisumbras
Copy link
Member

as_string et al. should have rvalue-ref qualified overload.

@vinniefalco
Copy link
Member

What exactly does this do?

@grisumbras
Copy link
Member Author

value foo();
void bar(string)

bar(foo().as_string());

This will copy the string. With an rvalue-ref overload it wouldn't.

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 a pull request may close this issue.

2 participants