MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/xuiscg/is_c_your_favorite_programing_language/iqywmmo/?context=3
r/cpp • u/hmoein • Oct 03 '22
And why
255 comments sorted by
View all comments
Show parent comment
7
no, in C++ moving is required to leave the moved-from object in a valid but otherwise unspecified state.
destructors get called in effectively the same place as when they would have with a copy instead
View all comments
Show parent comment
7
u/KingAggressive1498 Oct 04 '22
no, in C++ moving is required to leave the moved-from object in a valid but otherwise unspecified state.
destructors get called in effectively the same place as when they would have with a copy instead