- . , , , ( const refs, , / ). , , - . , , , , .
, , , , , , .
I cannot come up with any good reason why you would like to make the conversion between a pointer to a type and the type itself implicit or even explicit. The built-in way to do this is to dereference an object. I believe that there may be some set of specific circumstances that I can’t think of where it might be needed or a good idea, but I really doubt it. Of course, I would strongly advise you to do this if you do not have concrete and compelling reasons for this.
source
share