Advertisement

dynamic_cast vs. static_cast

Started by January 12, 2001 06:54 PM
0 comments, last by Promiscuous Robot 24 years ago
What exactly is the difference, and when should I use which one? I know that both do a type-cast, but what''s the difference between dynamic and static?
--------------------------I guess this is where most people put a famous quote..."Everything is funnier with monkey''s" - Unknown
dynamic is for casting between derived and base classes
static is for base types
- The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara

This topic is closed to new replies.

Advertisement