View Single Post
  #15 (permalink)  
Old 05-06-2012, 12:39 AM
Pete Becker
Guest
 
Posts: n/a
Default Re: Most-derived objects objects shall have a nonzero size? int[0] ?

On 2012-05-04 22:15:14 +0000, Johannes Schaub said:

>
> I think you have a point. I think the only way we could observe the size
> is by "sizeof", but which cannot be applied here. But on the other hand,
> the same is true for empty base class subobjects, but which are
> mentioned explicitly by clause 1.


Empty base class subobjects can be detected by looking at addresses of bases.

--
Pete
Roundhouse Consulting, Ltd. (www.versatilecoding.com) Author of "The
Standard C++ Library Extensions: a Tutorial and Reference
(www.petebecker.com/tr1book)


[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
Reply With Quote