Home > Articles > Programming > C/C++

Item 27: Minimize casting

  • Print
  • + Share This
The rules of C++ are designed to guarantee that type errors are impossible. Casting, however, subverts the type system and can lead to pesky errors in compiled code. This chapter explains why it's a good idea to forgo casting as much as possible in C++.
This chapter is from the book View this Item in PDF format.
  • + Share This
  • 🔖 Save To Your Account