From 5619799853e001b9a11aeeb8a916de1cc9a1584f Mon Sep 17 00:00:00 2001 From: Kevin Granade Date: Sat, 11 Apr 2020 20:24:28 -0700 Subject: [PATCH] use correct xml escaping --- lgtm/cpp-queries/c-style-math-functions.qhelp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 );