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
> I learned C++ with visual:
> c:\dev\test\test.cpp(49) : error C2440: 'initializing' : cannot convert
> '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.


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at