r/cpp • u/stanimirov • Jul 04 '18
Be Mindful with Compiler-Generated Move Constructors
https://ibob.github.io/blog/2018/07/03/compiler-generated-move/
87
Upvotes
r/cpp • u/stanimirov • Jul 04 '18
View all comments
Show parent comment
2
u/00kyle00 Jul 04 '18
It seems dumb, and if the language started from scratch, it would be dumb to design like this. Having unknown amount of code broken wasn't an option though.
I think its safe to assume this was looked at by enough sensible people before they decided to go with throwing moves.
Hopefully, there is a lesson learned here for people implementing stdlib though.