#include<vector>
struct TYPE {
int a, b, g, d;
bool bl;
};
int main() {
std::vector<TYPE> i;
std::vector<bool> b;
TYPE* ii = &i[0]; // can work with int, double, char and something else
bool* bb = &b[0]; // compile error
}
why only bool can't do it? I check TYPE can be int, double, char and user-defined-type.