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

2

u/jwakely libstdc++ tamer, LWG chair Aug 15 '26

Even if you didn't allow copying or comparing valueless objects (like the originally proposed design which wasn't approved), the assignment and destructor has to know if there's an object to destroy.