I create a function with the same name as in std, why when I explicitly call the function std::pow, my pow is called? I tried to make it in Clion, Xcode on Mac, also Rider on windows I got “13” two times, but when I asked my fried to run this in Visual Studio, he got two times std::pow call.
double pow(double num, double exponent)
{
return 13.0;
}
int main()
{
double a = pow(10, 5);
double b = std::pow(10, 5);
return 0;
}
1