Sep 6, 2024
You should be more explicit about modifying a variable that was originally declared const causes undefined behavior.
You should have also mentioned that using mutable is an alternative to const_cast for data members.
You should be more explicit about modifying a variable that was originally declared const causes undefined behavior.
You should have also mentioned that using mutable is an alternative to const_cast for data members.
C++ Jedi Master. I am NOT available for advice, consultation, recommendations, nor individual training. No, I don't want to write for your publication or site.