@Gankra fwiw, my opinion is "it's overhyped how terrible vector<bool> is, but it's certainly not good"
Top-level
2 comments
> a desire to optimize the concrete case And it wasn't even created as an optimization but for pedagogical purposes. > The vector<bool> specialization was intentionally put into the standard to provide an example of how to write a proxied container. |
@streganil i think that's where i fall too, yeah. vector<bool> is relatively rare, so it won't come up much, but it's unfortunate that a desire to optimize the concrete case of vector<bool> made the whole vector type just a little less useful in generic contexts