This post will introduce four specific casting operators that are most frequently used in C++ project. They include static_cast
, dynamic_cast
, const_cast
and reinterpret_cast
. The differences between of them will be told with some code samples.