From 3ae82818041dae47629c8eb26c15a0a40fb8c4c6 Mon Sep 17 00:00:00 2001 From: Razi Alavizadeh Date: Wed, 5 Dec 2018 21:03:32 +0330 Subject: [PATCH] MSVC: Fix ambiguous call to overloaded function fpclassify() Its called by std::isnan(), std::isinf() and std::isfinite() that are used in the following methods: JKQTPimagePlot_getImageMin() JKQTPimagePlot_array2RGBimage() JKQTPimagePlot_array2image() --- lib/jkqtplotter/jkqtpimagetools.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/jkqtplotter/jkqtpimagetools.h b/lib/jkqtplotter/jkqtpimagetools.h index 709c9aaa29..d8130b33ed 100644 --- a/lib/jkqtplotter/jkqtpimagetools.h +++ b/lib/jkqtplotter/jkqtpimagetools.h @@ -221,7 +221,7 @@ inline double JKQTPimagePlot_getImageMin(T* dbl, int width, int height) for (int i=1; i(v)) || std::isinf(static_cast(v)))) { if (first) { min=max=v; first=false; @@ -252,7 +252,7 @@ inline double JKQTPimagePlot_getImageMax(T* dbl, int width, int height) for (int i=1; i(v)) || std::isinf(static_cast(v)))) { if (first) { min=max=v; first=false; @@ -296,7 +296,7 @@ inline void JKQTPimagePlot_array2RGBimage(T* dbl_in, int width, int height, QIma for (int i=1; i(v))) { if (first) { min=max=v; first=false; @@ -585,7 +585,7 @@ inline void JKQTPimagePlot_array2image(T* dbl_in, int width, int height, QImage for (int i=1; i(v)) || std::isinf(static_cast(v)))) { if (first) { min=max=v; first=false;