c++ object sizes
- by anon
Suppose I have:
struct Foo: public Bar {
....
}
Foo introduces no new member varaibles. Foo only introduces a bunch of member functions & static functions. Does any part of the C++ standard now guarantee me that:
sizeof(Foo) == sizeof(Bar)
?
Thanks!