Correct usage(s) of const_cast

it is pretty much designed to be only used with legacy APIs that are not const correct i.e. with a function you can’t change that has non const interface but doesn’t actually mutate anything on the interface

Leave a Comment