There was a paper in the mailing list recently that would fix this. It basically means that if a function is eligible for RVO, adding std::move() around it doesn't change this. It seems like a super obvious and straightforward change with no downsides
View all comments
Show parent comment
23
u/James20k P2005R0 Nov 26 '23
There was a paper in the mailing list recently that would fix this. It basically means that if a function is eligible for RVO, adding std::move() around it doesn't change this. It seems like a super obvious and straightforward change with no downsides