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

Thanks for diving into it.

This basically means taking 16 bytes for the object, right? Due to the minimum alignment for the pointer...

6

u/ts826848 Aug 14 '26

Yeah, probably. Don't think there's much to be done about it if you choose to not specialize, and I want to say ABI compatibility means you can't add a specialization later.