POD
Walter Bright
newshound2 at digitalmars.com
Fri Dec 28 16:56:15 PST 2012
On 12/28/2012 4:23 PM, Andrej Mitrovic wrote:
> I think there's a bug here, it never checks for the presence of
> opAssign. Maybe change the first if check to:
>
> if (isnested || cpctor || postblit || ctor || dtor ||
> search_function(this, Id::assign))
>
> I can make a pull with this fix (and add the new isPOD trait). Whaddya think?
>
I don't think a dependency on opAssign is necessary. I think it's great you're
doing a pull request for it.
The definition of POD may change slightly in the future, and it may differ on
different platforms, which is why I think it is important to have a __traits for
it that gets the compiler's view of what's a POD.
I see you already saw:
http://d.puremagic.com/issues/show_bug.cgi?id=9237
More information about the Digitalmars-d
mailing list