I am new to C ++, here is my problem: I need this amount:
h = pow(mesh.V()[i0],1.0/3);
but I get this error message whenever I compile the program:
call of overloaded 'pow(const double&, double)' is ambiguous
And if I write
double V = mesh.V()[i0]; h = pow(V,1.0/3);
I get:
call of overloaded 'pow(double&, double)' is ambiguous
Now I think I understand that const is double & and double & see, but how can I convert const double & to double?
Thanks!
source share