Paul J. Lucas
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.

--

--

Paul J. Lucas

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.