From 637e2976721ab69936d408e7f7044746e79264fe Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Sat, 26 Nov 2022 10:18:11 +0000 Subject: [PATCH] Test case fix for std::complex and non-floating types deprecation From Visual Studio 2022: warning C4996: 'std::complex::complex': warning STL4037: The effect of instantiating the template std::complex for any type other than float, double, or long double is unspecified. You can define _SILENCE_NONFLOATING_COMPLEX_DEPRECATION_WARNING to suppress this warning. --- Examples/test-suite/director_basic.i | 4 ++-- Examples/test-suite/director_property.i | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Examples/test-suite/director_basic.i b/Examples/test-suite/director_basic.i index abb1a3d13..6c9769532 100644 --- a/Examples/test-suite/director_basic.i +++ b/Examples/test-suite/director_basic.i @@ -49,7 +49,7 @@ %inline %{ struct A{ - A(std::complex i, double d=0.0) {} + A(std::complex i, double d=0.0) {} A(int i, bool j=false) {} virtual ~A() {} @@ -60,7 +60,7 @@ namespace hi { struct A1 : public A { - A1(std::complex i, double d=0.0) : A(i, d) {} + A1(std::complex i, double d=0.0) : A(i, d) {} A1(int i, bool j=false) : A(i, j) {} virtual int ff(int i = 0) {return i;} diff --git a/Examples/test-suite/director_property.i b/Examples/test-suite/director_property.i index 3f4f57aaa..ef0f2ffe1 100644 --- a/Examples/test-suite/director_property.i +++ b/Examples/test-suite/director_property.i @@ -54,7 +54,7 @@ %inline %{ struct A{ - A(std::complex i, double d=0.0) {} + A(std::complex i, double d=0.0) {} A(int i, bool j=false) {} virtual ~A() {} @@ -65,7 +65,7 @@ namespace hi { struct A1 : public A { - A1(std::complex i, double d=0.0) : A(i, d) {} + A1(std::complex i, double d=0.0) : A(i, d) {} A1(int i, bool j=false) : A(i, j) {} virtual int ff(int i = 0) {return i;}