P
pauldepstein
Textbooks usually say that const_cast can "add or remove" a const
modifier. However, all the example I've seen are examples of
"remove". I've never seen a const_cast used to make something const
that was originally non_const. Is this ever done?
Thanks,
Paul Epstein
modifier. However, all the example I've seen are examples of
"remove". I've never seen a const_cast used to make something const
that was originally non_const. Is this ever done?
Thanks,
Paul Epstein