[Issue 15329] __traits(isPOD, S) incorrectly returns true for structs with disabled S.init

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jun 13 10:14:35 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=15329

RazvanN <razvan.nitu1305 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |razvan.nitu1305 at gmail.com

--- Comment #1 from RazvanN <razvan.nitu1305 at gmail.com> ---
I assume that instead of S7 you were referring to S.

Why should it not compile? From the glossary [1] :

"POD (Plain Old Data)
Refers to a struct that contains no hidden members, does not have virtual
functions, does not inherit, has no destructor, and can be initialized and
copied via simple bit copies."

If I'm not missing anything, S complies with all of the above.

[1] https://dlang.org/glossary.html#pod

--


More information about the Digitalmars-d-bugs mailing list