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

4

u/wyrn Aug 14 '26

The answer is, you don't check. You could remove valueless_after_move() with basically no loss. In fact it'd be a gain, because it'd avoid the confused conversation it always seems to cause.