Skip to content

Conversation

@sfod
Copy link
Contributor

@sfod sfod commented Oct 2, 2025

Issue #, if available:

Const ref doesn't always prolong the lifetime of a variable.

Description of changes:

It's possible to still use const ref by splitting getting the future value into multiple statements. But using value semantics is also fine as move semantics will be used.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

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