E
Edward Rutherford
This was pulled up at a code review. Code was similar to this:
struct foo {
int bar;
int baz;
} f;
int * i = (int *) f;
The only way this could go wrong is if the struct contains padding before
its first member, but I don't think this would ever happen in practice
--- maybe on theoretical perverse implementations like the ones you guys
like to play with
Who is right here by the letter of the law?
Cheers
Edward
struct foo {
int bar;
int baz;
} f;
int * i = (int *) f;
The only way this could go wrong is if the struct contains padding before
its first member, but I don't think this would ever happen in practice
--- maybe on theoretical perverse implementations like the ones you guys
like to play with
Who is right here by the letter of the law?
Cheers
Edward