then accessing such an object is undefined behavior,
Is that indirect specific or a general statement, because if the latter then accessing a moved-from object isin fact NOT automatic UB. For example I think everything in std with clear/reset can be reused if you call that after moving from it
View all comments
Show parent comment
4
u/Demiu Aug 14 '26
Is that indirect specific or a general statement, because if the latter then accessing a moved-from object isin fact NOT automatic UB. For example I think everything in std with clear/reset can be reused if you call that after moving from it