change initalization order in order to remove warning

This commit is contained in:
Manuel Caroli 2009-08-18 08:16:00 +00:00
parent b9c102649d
commit db1556784f
1 changed files with 19 additions and 11 deletions

View File

@ -59,28 +59,36 @@ public:
typedef Periodic_3_triangulation_ds_cell_base_3<TDS2> Other;
};
Periodic_3_triangulation_ds_cell_base_3() : _additional_flag(0), off(0) {
set_vertices();
set_neighbors();
}
Periodic_3_triangulation_ds_cell_base_3() : _additional_flag(0), off(0) {}
Periodic_3_triangulation_ds_cell_base_3(
const Vertex_handle& v0, const Vertex_handle& v1,
const Vertex_handle& v2, const Vertex_handle& v3) :
_additional_flag(0), off(0) {
set_vertices(v0, v1, v2, v3);
set_neighbors();
}
const Vertex_handle& v2, const Vertex_handle& v3)
#ifndef CGAL_CFG_ARRAY_MEMBER_INITIALIZATION_BUG
: V((Vertex_handle[4]) {v0, v1, v2, v3}),
_additional_flag(0), off(0) {}
#else
: _additional_flag(0), off(0) {
set_vertices(v0, v1, v2, v3);
set_neighbors();
}
#endif
Periodic_3_triangulation_ds_cell_base_3(
const Vertex_handle& v0, const Vertex_handle& v1,
const Vertex_handle& v2, const Vertex_handle& v3,
const Cell_handle& n0, const Cell_handle& n1,
const Cell_handle& n2, const Cell_handle& n3) :
_additional_flag(0), off(0) {
const Cell_handle& n2, const Cell_handle& n3)
#ifndef CGAL_CFG_ARRAY_MEMBER_INITIALIZATION_BUG
: N((Cell_handle[4]) {n0, n1, n2, n3}),
V((Vertex_handle[4]) {v0, v1, v2, v3}),
_additional_flag(0), off(0) {}
#else
: _additional_flag(0), off(0) {
set_vertices(v0, v1, v2, v3);
set_neighbors(n0, n1, n2, n3);
}
#endif
// ACCESS FUNCTIONS