Regular cast vs. static_cast vs. dynamic_cast [duplicate]
This question already has answers here: When should static_cast, dynamic_cast, const_cast and reinterpret_cast be used? (9 answers) Closed 7 years ago. I’ve been writing C and C++ code for almost twenty years, but there’s one aspect of these languages that I’ve never really understood. I’ve obviously used regular casts i.e. MyClass *m = (MyClass *)ptr; … Read more