From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Merrill To: aschiem@count.math.uni-sb.de (Alexander Schiemann) Cc: egcs@cygnus.com Subject: Re: virtual inheritance: optimization for empty objects Date: Wed, 31 Mar 1999 23:46:00 -0000 Message-ID: References: <199903042105.WAA19132.cygnus.egcs@count.math.uni-sb.de> X-SW-Source: 1999-03n/msg00271.html Message-ID: <19990331234600.XLpDv6p8Lxmx5e4rBzo_ylL86In_F7zqIrFjC_o9VCo@z> >>>>> Alexander Schiemann writes: > - does this suggestion conform with the standard (two base subobjects > having the same address)? I checked it, but perhaps > I missed some requirement. Yes. Only base subobjects of the same type are required to have different addresses. > - are there compilers that implement this kind of layout? I don't know. IBM's may. They have a patent on having a vbase with no data members share space with a derived class, which would not cover this optimization; but it's in the same area, so they may have thought of it. I hate software patents. Jason