diff --git a/lgtm/cpp-queries/c-style-math-functions.qhelp b/lgtm/cpp-queries/c-style-math-functions.qhelp index c76aa6a27edbc..a279dc00d81c8 100644 --- a/lgtm/cpp-queries/c-style-math-functions.qhelp +++ b/lgtm/cpp-queries/c-style-math-functions.qhelp @@ -20,7 +20,7 @@ definitional differences of these functions, we prefer to avoid use of the funct

Most current c++ standard libraries will allow invoking math functions in the global namespace

-#include \ +#include <cmath> float my_pow( float base, float exp ) { return pow( base, exp ); @@ -29,7 +29,7 @@ float my_pow( float base, float exp ) {

Prefer invoking the version in the std namespace.

-#include \ +#include <cmath> float my_pow( float base, float exp ) { return std::pow( base, exp );