diff --git a/Filtered_kernel/include/CGAL/internal/Static_filters/Equal_2.h b/Filtered_kernel/include/CGAL/internal/Static_filters/Equal_2.h index a72c54a403e..227adc6b0d7 100644 --- a/Filtered_kernel/include/CGAL/internal/Static_filters/Equal_2.h +++ b/Filtered_kernel/include/CGAL/internal/Static_filters/Equal_2.h @@ -39,6 +39,7 @@ template < typename K_base > class Equal_2 : public K_base::Equal_2 { + typedef typename K_base::FT FT; typedef typename K_base::Point_2 Point_2; typedef typename K_base::Vector_2 Vector_2; typedef typename K_base::Equal_2 Base; @@ -68,6 +69,7 @@ public: Get_approx get_approx; // Identity functor for all points // but lazy points double px, py, qx, qy; + init_double(px, py,qx, qy, (FT*)(0)); if (fit_in_double(get_approx(p).x(), px) && fit_in_double(get_approx(p).y(), py) && fit_in_double(get_approx(q).x(), qx) && fit_in_double(get_approx(q).y(), qy) ) diff --git a/Kernel_23/include/CGAL/Circle_2.h b/Kernel_23/include/CGAL/Circle_2.h index a3d67895e02..4a3085fec13 100644 --- a/Kernel_23/include/CGAL/Circle_2.h +++ b/Kernel_23/include/CGAL/Circle_2.h @@ -271,7 +271,7 @@ std::istream& extract(std::istream& is, Circle_2& c) { typename R::Point_2 center; - typename R::FT squared_radius; + typename R::FT squared_radius(0); int o; switch(get_mode(is)) { case IO::ASCII : diff --git a/Kernel_23/include/CGAL/Direction_2.h b/Kernel_23/include/CGAL/Direction_2.h index 2c693b0a2f8..9d3f556dc79 100644 --- a/Kernel_23/include/CGAL/Direction_2.h +++ b/Kernel_23/include/CGAL/Direction_2.h @@ -231,7 +231,7 @@ template std::istream& extract(std::istream& is, Direction_2& d, const Cartesian_tag&) { - typename R::FT x, y; + typename R::FT x(0), y(0); switch(get_mode(is)) { case IO::ASCII : is >> iformat(x) >> iformat(y); diff --git a/Kernel_23/include/CGAL/Direction_3.h b/Kernel_23/include/CGAL/Direction_3.h index a03c5116b3f..4c889a8281c 100644 --- a/Kernel_23/include/CGAL/Direction_3.h +++ b/Kernel_23/include/CGAL/Direction_3.h @@ -188,7 +188,7 @@ template std::istream& extract(std::istream& is, Direction_3& d, const Cartesian_tag&) { - typename R::FT x, y, z; + typename R::FT x(0), y(0), z(0); switch(get_mode(is)) { case IO::ASCII : is >> iformat(x) >> iformat(y) >> iformat(z); diff --git a/Kernel_23/include/CGAL/Line_2.h b/Kernel_23/include/CGAL/Line_2.h index dc96015b833..08c838a568a 100644 --- a/Kernel_23/include/CGAL/Line_2.h +++ b/Kernel_23/include/CGAL/Line_2.h @@ -260,7 +260,7 @@ template std::istream& extract(std::istream& is, Line_2& l) { - typename R::RT a, b, c; + typename R::RT a(0), b(0), c(0); switch(get_mode(is)) { case IO::ASCII : is >> iformat(a) >> iformat(b) >> iformat(c); diff --git a/Kernel_23/include/CGAL/Plane_3.h b/Kernel_23/include/CGAL/Plane_3.h index 337c910bf5d..887293deb89 100644 --- a/Kernel_23/include/CGAL/Plane_3.h +++ b/Kernel_23/include/CGAL/Plane_3.h @@ -257,7 +257,7 @@ template < class R > std::istream & operator>>(std::istream &is, Plane_3 &p) { - typename R::RT a, b, c, d; + typename R::RT a(0), b(0), c(0), d(0); switch(get_mode(is)) { case IO::ASCII : is >> iformat(a) >> iformat(b) >> iformat(c) >> iformat(d); diff --git a/Kernel_23/include/CGAL/Point_2.h b/Kernel_23/include/CGAL/Point_2.h index f6d14d1708f..6e1a97b2f5b 100644 --- a/Kernel_23/include/CGAL/Point_2.h +++ b/Kernel_23/include/CGAL/Point_2.h @@ -214,7 +214,7 @@ template std::istream& extract(std::istream& is, Point_2& p, const Cartesian_tag&) { - typename R::FT x, y; + typename R::FT x(0), y(0); switch(get_mode(is)) { case IO::ASCII : is >> iformat(x) >> iformat(y); diff --git a/Kernel_23/include/CGAL/Point_3.h b/Kernel_23/include/CGAL/Point_3.h index 7c7e88de0af..362b84f3c01 100644 --- a/Kernel_23/include/CGAL/Point_3.h +++ b/Kernel_23/include/CGAL/Point_3.h @@ -242,7 +242,7 @@ template std::istream& extract(std::istream& is, Point_3& p, const Cartesian_tag&) { - typename R::FT x, y, z; + typename R::FT x(0), y(0), z(0); switch(get_mode(is)) { case IO::ASCII : is >> iformat(x) >> iformat(y) >> iformat(z); diff --git a/Kernel_23/include/CGAL/Sphere_3.h b/Kernel_23/include/CGAL/Sphere_3.h index 0fc542033fd..78aeb657ed2 100644 --- a/Kernel_23/include/CGAL/Sphere_3.h +++ b/Kernel_23/include/CGAL/Sphere_3.h @@ -289,7 +289,7 @@ std::istream& extract(std::istream& is, Sphere_3& c, const Cartesian_tag&) { typename R::Point_3 center; - typename R::FT squared_radius; + typename R::FT squared_radius(0); int o=0; switch(get_mode(is)) { case IO::ASCII : diff --git a/Kernel_23/include/CGAL/Vector_2.h b/Kernel_23/include/CGAL/Vector_2.h index 89714e6fc74..8ecb9a74eab 100644 --- a/Kernel_23/include/CGAL/Vector_2.h +++ b/Kernel_23/include/CGAL/Vector_2.h @@ -299,7 +299,7 @@ template std::istream& extract(std::istream& is, Vector_2& v, const Cartesian_tag&) { - typename R::FT x, y; + typename R::FT x(0), y(0); switch(get_mode(is)) { case IO::ASCII : is >> iformat(x) >> iformat(y); diff --git a/Kernel_23/include/CGAL/Vector_3.h b/Kernel_23/include/CGAL/Vector_3.h index 2fbdd2789de..afc67b09778 100644 --- a/Kernel_23/include/CGAL/Vector_3.h +++ b/Kernel_23/include/CGAL/Vector_3.h @@ -279,7 +279,7 @@ template std::istream& extract(std::istream& is, Vector_3& v, const Cartesian_tag&) { - typename R::FT x, y, z; + typename R::FT x(0), y(0), z(0); switch(get_mode(is)) { case IO::ASCII : is >> iformat(x) >> iformat(y) >> iformat(z);