mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-27 14:50:21 +03:00
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`.
This commit is contained in:
parent
dce87f13a6
commit
2e6964ce69
@ -13,6 +13,7 @@
|
||||
#include <type_traits>
|
||||
#include <numeric>
|
||||
#include <memory>
|
||||
#include <cmath>
|
||||
|
||||
#if __GLIBCXX__ <= 20150623
|
||||
namespace std {
|
||||
|
Loading…
x
Reference in New Issue
Block a user