I have a "f" function whose result type is A.
I have a "g" function that takes one parameter of type pointer-to-A.
I have to call the "g" function using the return value of "f", but I can't:
I get "error C2664: cannot convert parameter 1 from 'struct A' to 'struct A*'. No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called".Code:temp=g(f())
An immediate idea would be to write:
But that fails as expected: "error C2102: '&' requires l-value"Code:temp=g(&f())