[c++] Ambiguous overload call to abs(double)