Is it valid to store the return value of an object in a reference?
class A { ... }; A myFunction() { A myObject; return myObject; } //myObject goes o
You might be interested in the return-by-value optimization that many compilers make to avoid calling the copy constructor.