Boost logo

Boost Users :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-06-27 21:50:45


"Jean Llorca" <yg-boost-users_at_[hidden]> wrote in message
news:affbst$g9e$1_at_main.gmane.org...
>
> I learned C++ with visual:
> c:\dev\test\test.cpp(49) : error C2440: 'initializing' : cannot convert
from
> 'class B *' to 'class C *'
> Types pointed to are unrelated; conversion requires
> reinterpret_cast, C-style cast or function-style cast
>
> If only the redactor could have added static_cast will do sometimes ;)

No, that's part of the point of static_cast: it never converts between
unrelated types.

-Dave


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net