News for hackers. Stuff that matters.
Re:Data structures and algorithms problems in C++ using STL by lorenzhs on Saturday March 11, 2017 @05:17AM (#13844989)
That seems entirely unrelated to tail call optimisation though? For once, "return foo(bar, baz)" isn't returning a named value, it's returning an rvalue. Secondly, return value optimisation doesn't optimise away the stack frame. Thirdly, the standard isn't as strict as you make it sound: compilers may elide the copy if they can, but if they cannot they have to move, never copy.

There are no comments on this comment yet.