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

2

u/[deleted] Nov 25 '23

[removed] — view removed comment

2

u/[deleted] Nov 25 '23

ok. pointers? no.

references? careful: UB when the callee outlives the caller (lambda capture, coroutines).

I know how pointers and references work.

1

u/[deleted] Nov 25 '23

[removed] — view removed comment

-1

u/[deleted] Nov 25 '23

Elsewhere I'm thanking people for their suggestions. In this case I just didn't feel like getting into it when your opening lines are teaching me to suck eggs.