From 508d15b578a63ad44e2c09a233fdca6e382e4737 Mon Sep 17 00:00:00 2001 From: jpekkila Date: Tue, 9 Jul 2019 13:37:08 +0300 Subject: [PATCH] Switched from math.h to cmath in math_utils.h. The old-school C math functions are bugged/not overloaded properly in GCC < 6.0 when compiling C++. --- src/core/math_utils.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/math_utils.h b/src/core/math_utils.h index 301b632..ffa261f 100644 --- a/src/core/math_utils.h +++ b/src/core/math_utils.h @@ -25,7 +25,10 @@ * */ #pragma once -#include // isnan, isinf +#include +using namespace std; // Potentially bad practice to declare namespace std here +// #include // isnan, isinf // Overloads incorrect/bugged with GCC <= 6.0 +// #include // Even this does not work #include // rand template