@PepijnKramer
std::move
doesn't always express ownership transfer. In a template, it can very well express "I'm not going to use this object anymore, you can do whatever you want with it" (i.e. "transfer ownership if applicable"). E.g. if you have a template with std::move
in it, then instantiate it for an int
, you surely wouldn't worry about a useless move. If we're fine with this meaning of move
in templates, I think it's not necessarily bad outside of templates too.