Commit Graph

3 Commits (445cf917913a6fe2df598b2ceb715ab3ea035fff)

Author SHA1 Message Date
0140454 7bdf1ccb23 Include necessary header file for std::abs
While compiling Latte-Dock, i got the following error:

/data/latte-dock/src/latte-dock-git/app/iconitem.cpp:393:46:   required from here
/data/latte-dock/src/latte-dock-git/app/../liblattedock/extras.h:69:20: error: call of overloaded ‘abs(double)’ is ambiguous
     return std::abs(x - y) < std::numeric_limits<T>::epsilon() *
     std::abs(x + y) * ulp

In order to solve this error, i have to include `cmath`.
8 years ago
Johan Smith Agudelo Rodriguez 8539a5da54 formatted. 8 years ago
Johan Smith Agudelo Rodriguez c79cbac0a6 utilities functions 8 years ago