From ce6ed9b51f114d76651309a03e114b9bd3dc6060 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Wed, 3 Apr 2013 14:31:42 +0200 Subject: [PATCH] fix initialization order of member objects --- Surface_modeling/include/CGAL/Deform_mesh.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Surface_modeling/include/CGAL/Deform_mesh.h b/Surface_modeling/include/CGAL/Deform_mesh.h index f018c61cf2a..fdb43eb1e40 100644 --- a/Surface_modeling/include/CGAL/Deform_mesh.h +++ b/Surface_modeling/include/CGAL/Deform_mesh.h @@ -201,13 +201,14 @@ public: double tolerance = 1e-4, Weight_calculator weight_calculator = Weight_calculator()) : polyhedron(polyhedron), vertex_index_map(vertex_index_map), edge_index_map(edge_index_map), - iterations(iterations), tolerance(tolerance), weight_calculator(weight_calculator), + ros_id_map(std::vector(boost::num_vertices(polyhedron), (std::numeric_limits::max)() )), + is_roi_map(std::vector(boost::num_vertices(polyhedron), false)), + is_hdl_map(std::vector(boost::num_vertices(polyhedron), false)), + iterations(iterations), tolerance(tolerance), need_preprocess_factorization(true), need_preprocess_region_of_solution(true), last_preprocess_successful(false), - is_roi_map(std::vector(boost::num_vertices(polyhedron), false)), - is_hdl_map(std::vector(boost::num_vertices(polyhedron), false)), - ros_id_map(std::vector(boost::num_vertices(polyhedron), (std::numeric_limits::max)() )) + weight_calculator(weight_calculator) { // assign id to each vertex and edge vertex_iterator vb, ve;