this post was submitted on 25 Nov 2023
29 points (96.8% liked)

C++

1879 readers
38 users here now

The center for all discussion and news regarding C++.

Rules

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] QuadriLiteral@programming.dev 2 points 1 year ago (10 children)

I wonder if the language could be updated so these extra std::move invocations actually become harmless? return std::move is something that I see used quite a bit.

[–] DanielaKEngert@hachyderm.io 3 points 1 year ago (1 children)

@QuadriLiteral @lysdexic We've been looking at a paper just recently in Kona, where the author proposed to not penalize "unfortunate" uses of std::move. I think this is user friendly and you might imagine what I've been voting for.

[–] QuadriLiteral@programming.dev 1 points 1 year ago

That sounds great!

load more comments (8 replies)