On 14/11/12 23:07, Jonathan Wilkes wrote:
Second, (t_foo *)x->member will give me an error: "t_text has no member named x_member". I don't understand
I guess it's precedence[0]?
(T *)x->m
equals:
(T *)(x->m)
when you really want:
((T *)x)->m
Claude
[0] http://en.wikipedia.org/wiki/Operators_in_C_and_C%2B%2B#Operator_precedence