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/
90
Upvotes
r/cpp • u/stanimirov • Jul 04 '18
View all comments
Show parent comment
1
u/minno Hobbyist, embedded developer Jul 04 '18
Another language that started from scratch with move semantics did make it impossible for them to throw exceptions, but did it by removing move constructors altogether, which causes issues with certain C or C++ idioms like objects storing references to their own members and updating those references on move.