sevenoutpinball:
That's interesting. Beyond what I need but hey they tried. I noticed going thru my stuff that I was moving int to a bool. I fixed it but I wonder if bool is allocated as int.
A bool is allocated as a bool. Both bool and int are fundamental types.
There are implicit conversions from integers to bool:
Boolean conversions
A prvalue of integral, floating-point, unscoped enumeration, pointer, and pointer-to-member types can be converted to a prvalue of typebool.The value zero (for integral, floating-point, and unscoped enumeration) and the null pointer and the null pointer-to-member values become
false. All other values becometrue.
https://en.cppreference.com/w/cpp/language/implicit_conversion#Boolean_conversions
The fixed-size equivalent of std::vector<bool> is std::bitset, which might be more appropriate in many embedded contexts.
Pieter