Open rhaschke opened 1 year ago
Just a note: The getter does not change constness of this->
. It just returns one non-const value from the const struct
(map-like) object. Yes, it seems silly, but the current API allows that. The constness is applied just to the internal pointer, not to the pointed-to value.
Return value should not change constness of
this
pointer! This augments/completes #1978.