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.
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.