samedi 28 mars 2015

Visual Studio overloaded function pow

I use Visual Studio 2012 Express for C programming. After including math.h a call of the pow function like pow(2,3) marks it with a red dash line as "overloaded function" because multiple overloaded versions are available and the compiler does't know in which types the ints should be converted.


As far as I know the standard c function is only pow(double,double). So it should be no problem to (implicitly) cast int,int to double double.


Why contains the math.h more than one version of pow that this kind of problem appears if only one version of pow should be available?


Best regards


Aucun commentaire:

Enregistrer un commentaire