Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace
reinterpret_cast
with static_cast
.
Conversion between pointers of unrelated types `Source` and `Target` can be done with `static_cast` => IMO should be done with `static_cast` (in order not to give the impression that `reinterpret_cast` really is needed): `T *ptr_target = static_cast <T *> (static_cast <void *> (ptr_source));` IMO `reinterpret_cast` should be used for pointer-to-integral and integral-to-pointer conversions (only).
- Loading branch information