Most current c++ standard libraries will allow invoking math functions in the global namespace
-
+
#include
float my_pow( float base, float exp ) {
return pow( base, exp );
}
-
+
Prefer invoking the version in the std namespace.
-
+
#include
float my_pow( float base, float exp ) {
return std::pow( base, exp );
}
-
+