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

Moving rvalues arguments #1

Open
gurukiran07 opened this issue Oct 2, 2021 · 0 comments
Open

Moving rvalues arguments #1

gurukiran07 opened this issue Oct 2, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@gurukiran07
Copy link
Owner

When argument Funcargs is passed as rvalues. They are moved in the first iteration. Pointed by @PasserBy on CodeReview

Minimum Reproducible Example:

timeit([](std::string s){ s += s; }, std::string("Lorem ipsum dolor sit amet"));
@gurukiran07 gurukiran07 pinned this issue Oct 2, 2021
@gurukiran07 gurukiran07 added the bug Something isn't working label Oct 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant