Re: Copy constructor at return

2006-09-22 Thread Bernd Strieder
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

Re: Copy constructor at return

2006-09-22 Thread Alan Woodland
[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