Checking if a structs .init value is zero bits only

Per Nordlöw per.nordlow at gmail.com
Wed Mar 28 00:15:34 UTC 2018


Is there a way to check if a struct `S` can be initialized using 
zero bits only, so that we can allocate and initialize an array 
of `S` in one go using `calloc`? If not, what should such a trait 
look like?


More information about the Digitalmars-d-learn mailing list