I'm trying to pass a reference to a current class as a parameter of a method of another class without success.
Say in class foo I call a function in class bar and pass a reference to foo as a parameter.
Here is the prototype in bar:
Here is the call to the function in foo:Code:
void someFunction(foo & reference);
Why is this not allowed? How can foo pass a reference to itself to bar?Code:
Thanks for your help.