for_each moves when it returns

See: http://www.cplusplus.com/reference/algorithm/for_each/