I was poring over some source code and came across the following:
I understand that this code creates a boolean (true or false) datatype but what does the author mean by his comment on the lack of binary compatibility with C++ bool.Code:/* Boolean type, assignment (but not necessarily binary) compatible with * C++ bool */ typedef enum {sox_false, sox_true} sox_bool;
Does this mean that the C++ built-in bool usually compiles to a size of 1 byte whereas a C bool defined using and enumerated type is essentially an int and therefore usually 2 or 4 bytes in size?