M
Michael G
I have an api that uses reference as arguments.
void function(double z, short &x, short &y){}
some calculations are done on z and then the results are being passed back
out in x and y.
The values the i need to pass to this function are pointer to shorts.
short * x1;
short * y1;
If I call the function like
function(z1, *x1, *y1);
The compiler doesn't complain and I get correct results with the small
number of tests that I have performed on it. But I am not sure that this is
correct.
Thanks, Mike
void function(double z, short &x, short &y){}
some calculations are done on z and then the results are being passed back
out in x and y.
The values the i need to pass to this function are pointer to shorts.
short * x1;
short * y1;
If I call the function like
function(z1, *x1, *y1);
The compiler doesn't complain and I get correct results with the small
number of tests that I have performed on it. But I am not sure that this is
correct.
Thanks, Mike