sizeof struct no less than 1?

Philpax phillip at philliplarkson.com
Fri Mar 21 19:31:17 PDT 2014


C++ exhibits the same behaviour for what is most likely the same 
reason: so that empty structs can be allocated without two 
distinct objects having the same memory address ( 
http://stackoverflow.com/questions/2362097/why-is-the-size-of-an-empty-class-in-c-not-zero 
)


More information about the Digitalmars-d-learn mailing list