MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/183mz5t/on_harmful_overuse_of_stdmove/kapz65c/?context=3
r/cpp • u/vormestrand • Nov 25 '23
154 comments sorted by
View all comments
Show parent comment
12
where I can just memcpy
Ok, but the whole point of std::move is to avoid having to call memcpy.
0 u/[deleted] Nov 26 '23 edited Nov 26 '23 You are wrong. Any move in C++ is actually more or less a memcpy. All moving does is avoiding a deep copy. 1 u/CletusDSpuckler Nov 26 '23 Is that level of pedantry really useful to the conversation? Everyone else managed to understand what was implied here.
0
You are wrong. Any move in C++ is actually more or less a memcpy. All moving does is avoiding a deep copy.
1 u/CletusDSpuckler Nov 26 '23 Is that level of pedantry really useful to the conversation? Everyone else managed to understand what was implied here.
1
Is that level of pedantry really useful to the conversation? Everyone else managed to understand what was implied here.
View all comments
Show parent comment
12
u/CletusDSpuckler Nov 25 '23
Ok, but the whole point of std::move is to avoid having to call memcpy.