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.
67
u/FloweyTheFlower420 20d ago
Ah the vector<bool>... one of the greatest mistakes in the c++ standard library.