[cxx-abi-dev] PATCH: Define "POD for the purpose of layout"

Mark Mitchell mark at codesourcery.com
Thu May 22 22:43:10 UTC 2003


On Thu, 2003-05-22 at 12:03, Moore, David wrote:
> Yes - I did miss that change. Or perhaps its significance - I had to
> think twice about it to see that it covered the case. All it really
> needs to say is "If C is a POD, set nvsize(C) = sizeof(C)". Then the
> fact that you have the desired post condition is easier to see. 

Perhaps the "non-POD for purposes of layout" could be relegated to
parentheses?

> Or, to state it differently,
> you should be able to push a POD through the non-POD layout method and
> get the same layout. If so, I certainly agree with that. I think we are
> ok on that front given 2.4.IV.

Yes, that's what I am saying.  The C++ ABI doesn't actually require
that, but that's what users will (reasonably) expect.

Thanks,

-- 
Mark Mitchell
CodeSourcery, LLC
mark at codesourcery.com




More information about the cxx-abi-dev mailing list