#include #include #include struct Object1 { uint32_t m_a; uint16_t m_b; bool b1; }; struct Object2 { uint32_t m_a; uint16_t m_b; bool b1; bool b2; }; struct Object3 { uint32_t m_a; uint16_t m_b; bool b1; bool b2; bool b3; }; int main (int argc, char *argv []) { std::cout << "sizeof (Object1): " << sizeof (Object1) << std::endl; std::cout << "sizeof (Object2): " << sizeof (Object2) << std::endl; std::cout << "sizeof (Object3): " << sizeof (Object3) << std::endl; }