"Gabriel Dos Reis" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> "David B. Held" <[EMAIL PROTECTED]> writes:
>
> | Does this have any merit whatsoever?
> |
> | template <typename T, typename U>
> | T* dangerous_cast(U* p)
> | {
> |     return static_cast<T*>(static_cast<void*>(p));
> | }
>
> Is it any different from reinterpret_cast<T*>(p) ?

no because either way, the only thing you can do with that T* result is cast
it back to its original type before using it, which is the very you do with
reinterpret_cast.




_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to