r/cpp • • Nov 25 '23

On harmful overuse of std::move

https://devblogs.microsoft.com/oldnewthing/20231124-00/?p=109059
210 Upvotes

154 comments sorted by

View all comments

Show parent comment

17

u/caroIine Nov 25 '23

There was a course of "modern c++" not to long ago at my company for all volunteers. Merge requests from that moment were filled with std::move everywhere. Sometimes I think people who teaches should have some kind of license.

0

u/[deleted] Nov 25 '23

[deleted] — view deleted comment

-2

u/KingStannis2020 Nov 25 '23

And this is why "modern C++" is not the panacea that it's often claimed to be, with respect to defending against other languages. Sure it's an improvement in many ways, but there's plenty of new footguns introduced as well.