There was never a reason to disable this optimization! What are you trying to achieve? This helps debug builds faster, without any bad side effects. It also ensures that RVO or NRVO dependent code works the same way in debugging and release.
Ashleysbrain
source share