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/NilacTheGrim Aug 14 '26

Horrible design. Agreed. They could have just modeled the optionality and exposed it like std::optional does with has_value, value_or, .value() that throws, etc.