1. 9
  1.  

  2. 1

    It’s a pity we can’t enforce const correctness. Unfortunately because of casting we can’t enforce const correctness in the functions that we own and we have to assume that the OS and 3rd party functions that we call are not const correct internally because we didn’t compile them.
    We could possibly add a new keyword that says, you can’t cast etc. but then functions that we call could have been compiled with a buggy or just non-standard compiler and it would break our application anyway.