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

Non-actual information regardng RValue life extension #6

Open
ujos opened this issue Aug 27, 2022 · 3 comments
Open

Non-actual information regardng RValue life extension #6

ujos opened this issue Aug 27, 2022 · 3 comments

Comments

@ujos
Copy link
Contributor

ujos commented Aug 27, 2022

In the For People New to C++ there is following text:

you can capture returned temporary objects from a function by constant reference to reduce the number of copy constructors

That makes sense for C++03 and maybe C++11. In case of C++14 (or better) it is possible to return value even if copy and more constructors are explicitly deleted. I mean in this case it makes no sense to extend the life of the RValue.

@ujos
Copy link
Contributor Author

ujos commented Aug 27, 2022

I mean that it worth to note that RValue lifetime extension is common practice for pre C++ 11

@burlachenkok
Copy link
Owner

Hi @ujos.

You did a lot of contributions, please let me know your name, surname, homepage.
I'd like to add somewhere near the title information about Editors.

@ujos
Copy link
Contributor Author

ujos commented Aug 30, 2022

please let me know your name, surname, homepage.

My name is Dmytro Ovdiienko

I do not have a webpage :). The best option I'm thinking of is GitHub page: https://github.com/ujos

Thanks

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

No branches or pull requests

2 participants