28 Jun
2002
28 Jun
'02
2:50 a.m.
"Jean Llorca"
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