mirror of https://github.com/CGAL/cgal
fix initialization order of member objects
This commit is contained in:
parent
4bca660454
commit
ce6ed9b51f
|
|
@ -201,13 +201,14 @@ public:
|
||||||
double tolerance = 1e-4,
|
double tolerance = 1e-4,
|
||||||
Weight_calculator weight_calculator = Weight_calculator())
|
Weight_calculator weight_calculator = Weight_calculator())
|
||||||
: polyhedron(polyhedron), vertex_index_map(vertex_index_map), edge_index_map(edge_index_map),
|
: 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<std::size_t>(boost::num_vertices(polyhedron), (std::numeric_limits<std::size_t>::max)() )),
|
||||||
|
is_roi_map(std::vector<bool>(boost::num_vertices(polyhedron), false)),
|
||||||
|
is_hdl_map(std::vector<bool>(boost::num_vertices(polyhedron), false)),
|
||||||
|
iterations(iterations), tolerance(tolerance),
|
||||||
need_preprocess_factorization(true),
|
need_preprocess_factorization(true),
|
||||||
need_preprocess_region_of_solution(true),
|
need_preprocess_region_of_solution(true),
|
||||||
last_preprocess_successful(false),
|
last_preprocess_successful(false),
|
||||||
is_roi_map(std::vector<bool>(boost::num_vertices(polyhedron), false)),
|
weight_calculator(weight_calculator)
|
||||||
is_hdl_map(std::vector<bool>(boost::num_vertices(polyhedron), false)),
|
|
||||||
ros_id_map(std::vector<std::size_t>(boost::num_vertices(polyhedron), (std::numeric_limits<std::size_t>::max)() ))
|
|
||||||
{
|
{
|
||||||
// assign id to each vertex and edge
|
// assign id to each vertex and edge
|
||||||
vertex_iterator vb, ve;
|
vertex_iterator vb, ve;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue