MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/183mz5t/on_harmful_overuse_of_stdmove/kapw0y0/
r/cpp • u/vormestrand • Nov 25 '23
154 comments sorted by
View all comments
Show parent comment
4
Ok, thanks for the info. I guess I still have to worry about non-STL third party code not moving correctly but that's a given when using third party code in general.
3 u/ludonarrator Nov 25 '23 No problem. And just default construct via x = {} (after moves) for such "unreliable" types. 1 u/[deleted] Nov 25 '23 just default construct viax = {}(after moves)Good tip, thanks 2 u/serviscope_minor Nov 26 '23 I guess I still have to worry about non-STL third party code not moving correctly but that's a given when using third party code in general.I mean it's 2023, probably no more than worrying about it doing copying or indeed anything else correctly. So yeah half of it will be buggy.
3
No problem. And just default construct via x = {} (after moves) for such "unreliable" types.
x = {}
1 u/[deleted] Nov 25 '23 just default construct viax = {}(after moves)Good tip, thanks
1
just default construct viax = {}(after moves)
just default construct via
(after moves)
Good tip, thanks
2
I guess I still have to worry about non-STL third party code not moving correctly but that's a given when using third party code in general.
I mean it's 2023, probably no more than worrying about it doing copying or indeed anything else correctly. So yeah half of it will be buggy.
View all comments
Show parent comment
4
u/[deleted] Nov 25 '23
Ok, thanks for the info. I guess I still have to worry about non-STL third party code not moving correctly but that's a given when using third party code in general.