Battled with math.h and cmath. We probably should move from C standard libraries to C++ ones internally (in places which are not visible via the interface)
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include "math_utils.h"
|
||||
#include "src/core/math_utils.h"
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
|
||||
@@ -25,10 +25,10 @@
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
#include <cmath>
|
||||
using namespace std; // Potentially bad practice to declare namespace std here
|
||||
// #include <math.h> // isnan, isinf // Overloads incorrect/bugged with GCC <= 6.0
|
||||
// #include <tgmath.h> // Even this does not work
|
||||
//#include <cmath>
|
||||
// using namespace std; // Potentially bad practice to declare namespace std here
|
||||
#include <math.h> // isnan, isinf // Overloads incorrect/bugged with GCC <= 6.0
|
||||
//#include <tgmath.h> // Even this does not work
|
||||
#include <stdlib.h> // rand
|
||||
|
||||
template <class T>
|
||||
|
||||
Reference in New Issue
Block a user