This is a discussion on Does the following code show undefined behaviour ? within the C++ Programming forums, part of the General Programming Boards category; Originally Posted by manasij7479 What I can't understand : how does returning a reference allow such corruption ? Originally Posted ...
.... That is because we are debating without the code ....
Some of the facts did not translate accurately to my words !
... I'd (tomorrow) post the code in another thread ...
Manasij Mukherjee | gcc-4.8.0 @Arch Linux
Slow and Steady wins the race... if and only if :
1.None of the other participants are fast and steady.
2.The fast and unsteady suddenly falls asleep while running !