On 06/09/2007, Peter A. Felvegi <[EMAIL PROTECTED]> wrote:
> i don't know if it's a bug, please clarify:
>         int y = reinterpret_cast<int>(x);
> rc.cpp:4: error: invalid cast from type 'int' to type 'int'

5.2.10 in the C++ standard lists the conversions allowed by
reinterpret_cast. This is not one of the listed conversions, so GCC is
correct to give an error.

Regards,
Jon

Reply via email to