Depends on compiler . Return Value optimization : See the link : http://en.wikipedia.org/wiki/Return_value_optimization
Sanju :) On Sun, Aug 21, 2011 at 10:11 AM, Puneet Chawla <[email protected]>wrote: > Confused don't know the reason why the copy constructor is not called nor > that = operator overloading..plzzz help me out..!!! > > On Sun, Aug 21, 2011 at 10:33 PM, Thayumanavar S <[email protected]>wrote: > >> >> folks during temporary object creation constructor is called >>> right..........but constructor is called here only 2 times.. >>> According to me,either copy constructor and constructor should have been >>> called 2 times both or constructor 4 times ......but its neither of >>> them...paradox >>> >> http://en.wikipedia.org/wiki/Return_value_optimization >> >> thayumanavar s >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Algorithm Geeks" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/algogeeks?hl=en. >> > > > > -- > With regards > ............ > Puneet Chawla > Computer Engineering Student > NIT Kurukshetra > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
