logoalt Hacker News

locknitpickeryesterday at 6:24 PM1 replyview on HN

> I thought "move doesn't move" was a fairly common C++ mantra at this point.

It is. The fact that std::move is just a cast and that move constructors are expected to transfer resources are basic intro to C++ topics, covered in intro to constructors.


Replies

LexiMaxyesterday at 8:10 PM

It's far too late to put the genie back in the bottle, but I am morbidly curious as to why the standards committee didn't choose an approach that made moves destructive.

show 3 replies