I am working on other code at work (Qt Desktop application) and found this:
connect( &*mpMainWin, SIGNAL(whatever()), this, SLOT(whatever()) ));
Itβs hard for me to understand the part &*mpMainWin. As far as I know about pointers, it returns the address of the de-referured pointer mpMainWin.
But it mpMainWinalready has this address, so its direct inclusion as a parameter should have the same result.
So, if I donβt miss anything, and my logic is correct, what is the reason for this? and if it is, when should we use this syntax?
source
share