flyingmutant/k2 — comment on commit 513160f1faae169361a8d7a85af4942391e90145
File: magic line 51
By jckarter:

There are a few places where automatic move optimization might have unwanted behavior effects. Side-effecting destructors are the main one. Returning a field of an rvalue is also a bit tricky. For "return rv.field" to work, you would want to move "field" while selectively destroying all the other fields of rv. This is something I've been struggling to improve with Clay.