"Does all the members inherit const, or only the variable p is read-only?" I don't understand the question. Clearly the members themselves can't be modified, as you've tested yourself.
↧