[cxx-abi-dev] Passing non-trivial types through ...

Jason Merrill jason at redhat.com
Wed Aug 20 20:57:53 UTC 2014


On 08/13/2014 08:36 PM, Jason Merrill wrote:
>>> From: John McCall <rjmccall at apple.com>
>>> This is clearly the right way for any vendor who wants to accept non-POD
>>> variadic arguments to do it:  no solution involving memcpy can be
>>> correct for all types
>
> Yep.  The only question is whether it's better, for code that is in a
> gray area of the standard, to stick with the broken historical practice
> or do something more correct.

Any more opinions on this question?  I'm ambivalent.

Since there is incompatible existing practice and the code is only 
conditionally-supported anyway, perhaps sticking with existing practice 
is the right answer even though it breaks the object model.

On the other hand, perhaps since the code is only 
conditionally-supported, compatibility with existing practice isn't as 
important.

Jason



More information about the cxx-abi-dev mailing list