Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Named Return Value [NRV]

Status
Not open for further replies.

isaisa

Programmer
May 14, 2002
97
IN
Hi All,
i came across some reading about the NRV [Named Return Value] of the function while i was reading about the copy constructors.

This named return value concept is not clear and how it is linked with compiler turning on /off the optimization ?

can someone summerize about the program transformation that is carried out by the compiler [related to copy constructor]?

i am facing a lot of problems while reading book " Inside C++ object model" by Staneley Lipman. There are many things i am not able to grasp about constructor getting synthesized especially in case of copy constructor. It will be great help if some one explain in simple language or give some useful links regarding the same.


Thanks in advance.

sanjay
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top