G
graham
Hi,
I need to initialise a reference to a pointer. I'm a client of a
function that requires it.
Can you tell me how I can shorten the initalisation of totoToRef
below? I'm obviously going the long way about it.
void mymethod(toto& totoRef)
{
toto* ptr = &totoRef;
toto*& totoRefToPointer = ptr;
}
thanks and have a nice weekend.
I need to initialise a reference to a pointer. I'm a client of a
function that requires it.
Can you tell me how I can shorten the initalisation of totoToRef
below? I'm obviously going the long way about it.
void mymethod(toto& totoRef)
{
toto* ptr = &totoRef;
toto*& totoRefToPointer = ptr;
}
thanks and have a nice weekend.