Is it OK to return a const reference to a private member?
Asked 2009-03-31T13:46:46.390
28
I need to implement read-only access to a private member container. If I return a constant reference is it possible to const_cast it and obtain a full access to the member? What's the technique to be used?