empty base class optimization

Posted by FredOverflow on Stack Overflow See other posts from Stack Overflow or by FredOverflow
Published on 2010-05-13T12:09:55Z Indexed on 2010/05/13 12:14 UTC
Read the original article Hit count: 173

Filed under:

Two quotes from the C++ standard, §1.8:

An object is a region of storage.

Base class subobjects may have zero size.

I don't think a region of storage can be of size zero. That would mean that some base class subobjects aren't actually objects. Opinions?

© Stack Overflow or respective owner

Related posts about c++