#include #include class Object1 { uint32_t m_refcount; uint16_t m_typeid; bool xx; }; class Object2 { uint32_t m_refcount; uint32_t m_type; bool xx; }; int main (int argc, char *argv []) { std::cout << "sizeof (Object1): " << sizeof (Object1) << std::endl; std::cout << "sizeof (Object2): " << sizeof (Object2) << std::endl; }