I\'ve heard that the static_cast function should be preferred to C-style or simple function-style casting. Is this true? Why?
static_cast
static_cast means that you can't accidentally const_cast or reinterpret_cast, which is a good thing.
const_cast
reinterpret_cast