As title, should I always use static_cast for C++ project; if I just want to handle the conversion from double to int and the conversion from a base-pointer to a derived-pointer. Is my thought correct?
Thanks all
As title, should I always use static_cast for C++ project; if I just want to handle the conversion from double to int and the conversion from a base-pointer to a derived-pointer. Is my thought correct?
Thanks all
Use static_cast for double to int conversions, but you probaby want dynamic_cast for base-pointer to derived-pointer.
