On Mon, Oct 14, 2013 at 4:36 PM, Sean Silva <[email protected]> wrote:

> +struct A4 {
> +       int a;
> +       A4() : a(0xf00000a4) {}
>
> Out of curiosity, is there a hidden meaning for these hex constants? They
> seem to have some sort of pattern.
>

Note that the last couple of hex digits are the name of the class
containing the member. This makes it easy to see how a class was laid out
by dumping the contents of an instance of it.
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to