Correct syntax for uniform initialization

This commit is contained in:
Philipp Möller 2012-12-12 11:24:34 +01:00
parent cd7c3e3592
commit 3e98c46535
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ public:
const Vertex_handle& v0, const Vertex_handle& v1,
const Vertex_handle& v2, const Vertex_handle& v3)
#ifndef CGAL_CFG_NO_CPP0X_UNIFIED_INITIALIZATION_SYNTAX
: V((Vertex_handle[4]) {v0, v1, v2, v3}),
: V{v0, v1, v2, v3},
_additional_flag(0), off(0) {}
#else
: _additional_flag(0), off(0) {

View File

@ -48,7 +48,7 @@ public:
Triangulation_ds_cell_base_3(Vertex_handle v0, Vertex_handle v1,
Vertex_handle v2, Vertex_handle v3)
#ifndef CGAL_CFG_NO_CPP0X_UNIFIED_INITIALIZATION_SYNTAX
: V((Vertex_handle[4]) {v0, v1, v2, v3} ) {}
: V{v0, v1, v2, v3} {}
#else
{ set_vertices(v0, v1, v2, v3); }
#endif