You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
In the
For People New to C++
there is following text: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.
The text was updated successfully, but these errors were encountered: