auto v = std::vector<bool>(8);
bool* vPtr = v.data;
vPtr[2] = true;
// KABOOM !!!
I've spent days tracking this bug... That's how I learned about bool specialisation of std::vector.
auto v = std::vector<bool>(8);
bool* vPtr = v.data;
vPtr[2] = true;
// KABOOM !!!
I've spent days tracking this bug... That's how I learned about bool specialisation of std::vector.