r/cpp • • Aug 13 '26

C++26: std::indirect

https://www.sandordargo.com/blog/2026/08/12/cpp26-indirect
164 Upvotes

157 comments sorted by

View all comments

Show parent comment

3

u/smdowney WG21, Text/Unicode SG, optional<T&> Aug 14 '26

Blame c++11. Destructive moves are the principled right answer, but we couldn't figure out all of the problems that resulted. So all values have a moved from state. For most it's the same as the assigned from state. But resource ownership types complicate that.