Tag: casting
All the articles with the tag "casting".
-
static_cast vs dynamic_cast in C++: Which One to Use
static_cast is checked at compile time and costs nothing. dynamic_cast checks the real type at runtime and fails safely. When to use each.
All the articles with the tag "casting".
static_cast is checked at compile time and costs nothing. dynamic_cast checks the real type at runtime and fails safely. When to use each.