[comp.lang.c++] overloaded function question

alex@cca.CCA.COM (Alexis Layton) (04/09/88)

Here is a question  about overloaded functions:

Suppose we make the following definition:

	overload exchange;
	inline void exchange(void *& a, void *& b) {
	    void *c = a;
	    a = b;
	    b = c;
	}

Now, does this version of the function get called for

	Foo *a;
	Foo *b;

	   .
	   .
	   .

	exchange(a, b);

???

Thanks.

Alexis Layton
alex@CCA.CCA.COM