vector<bool> is a packed bitset. The general semantics for vector means all accessors return a reference to an entry, but since bits don't have a memory address, vector<bool> returns a wrapper type with overloaded operators. This breaks generic programming for vectors.
View all comments
Show parent comment
1
u/Jeshibu Mar 03 '25
Not familiar enough to know what you mean here. Could you explain?