title: How to disable return value optimization in Visual Studio 2010?
body: <p>Is it possible to disable RVO (return value optimization) in Visual Studio 2010? Setting optimization flag to <code>/Od</code> (turns off all optimizations) doesn't help. In g++ there exists flag <code>-fno-elide-constructors</code> which disables RVO.</p>