>From: "David Abrahams" <[EMAIL PROTECTED]>

> Gabriel Dos Reis <[EMAIL PROTECTED]> writes:
>
> > "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) ?
>
> It might be, depending on your compiler. The behavior of
> reinterpret_cast<T*> is implementation-defined.

Doesn't that mean that dangerous_cast would also be implementation-defined?
:)


Regards,

Terje

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

Reply via email to