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

Update previous tips to reflect guaranteed copy elision in C++17 #483

Open
Brian-M-J opened this issue May 31, 2024 · 0 comments
Open

Update previous tips to reflect guaranteed copy elision in C++17 #483

Brian-M-J opened this issue May 31, 2024 · 0 comments

Comments

@Brian-M-J
Copy link

Many early tips talk about RVO, copy elision etc., but make no mention of C++17. As a result, they often say things like, "Strictly speaking the compiler is not required to perform copy elision".

Now that C++17 guarantees copy elision in certain situations, a note can be added to the tips similar to the one given for number 11. It can tell readers to refer to number 166.

These are the tips which I found mention copy elision and were made before C++17:

  1. Number 11
  2. Number 24
  3. Number 77
  4. Number 101
  5. Number 117
  6. Number 120
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

1 participant