I have been passing data into methods by reference as means of returning results. However, I've been running into problems & suspect I maybe misusing references.
Could anyone tell me what/if is wrong with the following example and what is actually happening behind the scenes with regard to the reference:
Code:bool somefunc(std::complex<long double>& rslt) { rslt = 0.0L; ... rslt = x * y; return true; }



LinkBack URL
About LinkBacks


