Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
Remove our own redifinition of std::is_integral for half
Dmitry Kazakovcc113e991c90
diff --git a/libs/global/KisHalfTraits.h b/libs/global/KisHalfTraits.hindex 04422c60ef..0612f2fc5d 100644--- a/libs/global/KisHalfTraits.h+++ b/libs/global/KisHalfTraits.h@@ -17,43 +17,6 @@namespace std {-#if defined __GLIBCXX__--template<>- struct __is_integral_helper<half>- : public false_type { };--template<>- struct __is_floating_point_helper<half>- : public true_type { };--#elif defined _LIBCPP_VERSION--template<>- struct __libcpp_is_integral<half>- : public false_type { };--template<>- struct __libcpp_is_floating_point<half>- : public true_type { };---#else- // these are fallback implementations that- // don't support cv-qualifiers removal-- template<>- struct is_integral<half>- : public false_type- { };-- template<>- struct is_floating_point<half>- : public true_type- { };--#endif-inline boolisfinite(half __x){ return __x.isFinite(); }diff --git a/libs/pigment/KoMixColorsOpImpl.h b/libs/pigment/KoMixColorsOpImpl.hindex a029cfa46f..56de3d7cee 100644--- a/libs/pigment/KoMixColorsOpImpl.h+++ b/libs/pigment/KoMixColorsOpImpl.h@@ -21,13 +21,13 @@template <typename T>static inline T safeDivideWithRound(T dividend,- std::enable_if_t<std::is_floating_point<T>::value, T> divisor) {+ std::enable_if_t<!std::numeric_limits<T>::is_integer, T> divisor) {return dividend / divisor;}template <typename T>static inline T safeDivideWithRound(T dividend,- std::enable_if_t<std::is_integral<T>::value, T> divisor) {+ std::enable_if_t<std::numeric_limits<T>::is_integer, T> divisor) {return (dividend + divisor / 2) / divisor;}