Hello,
[EMAIL PROTECTED] wrote:
> Why g++ in Linux does not call copy constructor at return statement?
>
Look for the keywords RVO or NRVO i.e. (named) return value
optimization. Use google or a Usenet Archive. It has been broadly
discussed.
Bernd Strieder
[EMAIL PROTECTED] wrote:
> Hi,
>
> Why g++ in Linux does not call copy constructor at return statement?
>
It's known as return value optimization. See:
http://www.parashift.com/c++-faq-lite/ctors.html#faq-10.9 for more
details. Basically though you can't rely upon any side effects of copy
constru