Re: Best practices of using const
Thank you for such a comprehensive answer.
Best practices of using const
In C++ we have const correctness in some way. A compiler can make optimizations whenever it doesn't find a const_cast and the mutable specifier marks members that aren't a part of the object state. Of course, it's not perfect but one can document their intentions and it's possible to use synchr