default arg to tds constructor

This commit is contained in:
Olivier Devillers 2012-07-03 15:33:45 +00:00
parent acccab37ca
commit 6416b4a73b
3 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ example delaunay does not execute properly
in Triangulation_data_structure :
put a default value for dim in the constructor
(does not work, I do not understand why).
(does not work, I do not understand why). OK done.
check that the perturbation scheme is independant of the order of insertion

View File

@ -6,7 +6,7 @@ int main()
{
typedef CGAL::Triangulation_data_structure<CGAL::Dimension_tag<7> > TDS;
TDS S(0); // the argument is not taken into account. dimension is 7.
TDS S;
assert( 7 == S.ambient_dimension() );
assert( -2 == S.current_dimension() );
assert( S.is_valid() );

View File

@ -147,7 +147,7 @@ private:
};
public:
Triangulation_data_structure( int dim) /* Concept */
Triangulation_data_structure( int dim=0) /* Concept */
: dmax_(get_ambient_dimension<Dimen>::value(dim)), dcur_(-2),
vertices_(), full_cells_()
{