Hi!
A simple quick question here....
In the following template function, whats the purpose of the '&' in the argument of the BridgeIt function? I tried running it without the '&' and got the exact same output!
#include <stdio.h>
template <class T>
int BridgeIt (T& t1) {
return t1+1;
}
int main() {
int a = 3;
printf("A: %d\n", BridgeIt(a));
return 0;
}
-TiN