On 02/01/2008, Yossi Kreinin <yossi.krei...@mobileye.com> wrote:
> I think. Now, the question is, and I really mean "the question" because I 
> don't
> know the answer: what does reinterpret_cast do? I think it's supposed to be 
> for
> "reinterpreting the bits of x having type A as if it really had the type B", 
> but
> I'm pretty sure it's more complicated than that. I only used it once to pass
> parameters to an asm macro and then it stopped working upon a compiler upgrade
> and I changed the spelling to C-like and it worked.

It's for converting between pointers to unrelated types. I *think* it
can also be used for refs (foo&). I *think* it can also be used for storing a
pointer into a sufficently large int, and vice versa.

Reply via email to