Structs can't be zero bytes in size?

Andrej Mitrovic andrej.mitrovich at gmail.com
Mon Sep 2 19:59:26 PDT 2013


On 9/3/13, Lionello Lunesu <lionello at lunesu.remove.com> wrote:
> struct Z {};
> Z a, b;
> assert(&a != &b);

Since the structs are declared empty, their 1-byte values don't
matter. So their addresses don't really matter either.


More information about the Digitalmars-d mailing list