Re: [cxx0x-branch] Rvalue references vs RVO

2007-05-08 Thread Doug Gregor
I'm CC'ing Howard, the master of the rvalue reference, and Russell, the author of the rvalue references patch... see below for my take on this. On 5/7/07, Sylvain Pion <[EMAIL PROTECTED]> wrote: I have done some experiments with the rvalue reference feature on the cxx0x-branch. Great! I am

[cxx0x-branch] Rvalue references vs RVO

2007-05-07 Thread Sylvain Pion
Hi, I have done some experiments with the rvalue reference feature on the cxx0x-branch. If I execute the following program: - #include struct A { A () { std::cout << "def ctor" << std::endl; } A (const A&) { std::cout << "normal copy" << std::endl; } A (A