[std-interval] PODs and parameter passing
Gabriel Dos Reis
gdr at integrable-solutions.net
Fri Apr 7 10:59:06 PDT 2006
Steve Clamage <Stephen.Clamage at Sun.COM> writes:
[...]
| >>It all depends on the degree of non-PODness; there are ABIs out there
| >>on popular platforms that make optimization decisions based on degree
| >>of PODness.
|
| Gaby, PODness is binary. If a type does not satisfy all the
| requirements of a POD, it is not a POD.
you are exactly right.
What I thinking of when I wrote that was scenario when the standard
says a class is a non-POD, but but the ABI treats it -- for calling
convention purpose -- as a POD because its copy-constructor is trivial
and it is sufficiently simple (e.g. does not have virtual functions,
not virtual base class etc.). But, since we were discussing standard
matters, I should have been more specific.
-- Gaby
More information about the Std-interval
mailing list