summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
1fdee30)
It seems that C++11 systems want std::abs for doubles, and C++17 ones
want std::fabs for that. So let's stick to the C version.
#include "xbt/log.h"
#include "xbt/misc.h"
#include "xbt/log.h"
#include "xbt/misc.h"
XBT_LOG_NEW_DEFAULT_CATEGORY(unit, "Unit tests of the Trace Manager");
double thedate;
XBT_LOG_NEW_DEFAULT_CATEGORY(unit, "Unit tests of the Trace Manager");
double thedate;
static inline bool doubleEq(double d1, double d2)
{
static inline bool doubleEq(double d1, double d2)
{
- return std::abs(d1 - d2) < 0.0001;
+ return fabs(d1 - d2) < 0.0001;