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

5

u/TheKiller36_real Aug 14 '26

I wasn't talking about vector<bool>, I was talking about the required iterator stability on move that necessitates data to be always-on-the-heap ie. small object optimizations are explicitly banned (which technically makes basic_string the better-ish vector btw xD)

2

u/ts826848 Aug 14 '26

Oh, I was not thinking about that at all. My apologies for the misunderstanding!

2

u/TheKiller36_real Aug 14 '26

all good I didn't specify, my bad - at least we didn't start a fight ;)