▲ | motorest 4 days ago | |
> Since I use move semantics all the time (...) Everyone who ever uses C++ uses move semantics all the time,including move elision. It's not an obscure feature. > (...) this is for me the most frustrating thing about C++ full stop. I've been using C++ for years and I have no idea what you could be possibly referring to. The hardest aspect of move semantics is basically the rule of 5. From that point, when you write a class you have the responsibility to specify how you want your class to be moved and how you want your moved-from class to look like, provided that you ensure you leave it in a valid state. That's it. What exactly do you believe needs fixing? |