A
Anna Smidt
I am having an "ambiguous call to overloaded function" error again.
This is the function:
int nGetProfWidth (int ncols, unsigned ProfSpec)
{
if ((ProfSpec & PROF_2d) == 0)
return ncols;
return int(sqrt(ncols)); //HERE THE ERROR IS THROWN
}
When I want to have an integer returned (as in the code above - at least
I think it should return an integer), how should I rewrite this code?
Anna
This is the function:
int nGetProfWidth (int ncols, unsigned ProfSpec)
{
if ((ProfSpec & PROF_2d) == 0)
return ncols;
return int(sqrt(ncols)); //HERE THE ERROR IS THROWN
}
When I want to have an integer returned (as in the code above - at least
I think it should return an integer), how should I rewrite this code?
Anna