Hi all,
if i try to use reference in formal parameter the compiler is reporting error as
error: no matching function for call to âPREDICT::GetModelAverageQResidualContribution3D(TNT::Array3D<double>)â
note: candidates are: TNT::Array2D<double> PREDICT::GetModelAverageQResidualContribution3D(TNT::Array3D<double>&)
Here is my code which defines the function
Code:
Array2D<REAL> GetModelAverageQResidualContribution3D(Array3D<REAL> & )
{
//here i have some code that uses model_xresiduals but i wont modify it.
//Array2D , Array3D are all user defined
}
here is the code that i invoke the above function
Code:
cout << pred.GetModelAverageQResidualContribution3D(val.GetResiduals());
if i remove "&" i wont get error,but i need to make that formal parameter as an alias(to actual argument) , plz suggest me to do this...........
waiting for your reply