Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
dearrifling
· 7y ago · 0 comments
One shouldn't std::move in a return. Returning a local is already automatically an rvalue, however explicitly moving it disables copy elision.
Comments
[–]
petters
7y ago
You are completely right. That should be fixed