K
Kev
Greetings all )
Pardon if my quickie code isnt exactly right. This is the classic 'you cant
do that' reference to a reference problem:
I am trying to avoid passing the class itself around... and from using
pointers. To get around the problem here is what I did. I havent been able
to really test this throughly as Im not ready to use it. But I am not
receiving any compile errors.
myclass a;
function1(a);
function1(myclass &b)
{
function2(myclass &b);
}
function2(myclass *c)
{
}
In function1 am I passing a pointer to 'a' to function2... without making
any duplicates of it?
cheers
Pardon if my quickie code isnt exactly right. This is the classic 'you cant
do that' reference to a reference problem:
I am trying to avoid passing the class itself around... and from using
pointers. To get around the problem here is what I did. I havent been able
to really test this throughly as Im not ready to use it. But I am not
receiving any compile errors.
myclass a;
function1(a);
function1(myclass &b)
{
function2(myclass &b);
}
function2(myclass *c)
{
}
In function1 am I passing a pointer to 'a' to function2... without making
any duplicates of it?
cheers