mirror of https://github.com/CGAL/cgal
achieve backwardcompatibility to the code not to the documentation
This commit is contained in:
parent
d29268032f
commit
ca9e8d4948
|
|
@ -63,9 +63,7 @@ The intersection tag as defined in `Tr`.
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
The identifier of a polyline constraint.
|
The identifier of a polyline constraint.
|
||||||
The class is model of `Assignable`, `CopyConstructible`, `DefaultConstructible`, and `Comparable`. For reasons of backward compatibility of
|
The class is model of `Assignable`, `CopyConstructible`, `DefaultConstructible`, and `Comparable`.
|
||||||
functions that returned `std::pair<Vertex_handle,Vertex_handle>` instead of `Constraint_id`,
|
|
||||||
the id class has a conversion operator to `std::pair<Vertex_handle,Vertex_handle>`.
|
|
||||||
*/
|
*/
|
||||||
typedef unspecified_type Constraint_id;
|
typedef unspecified_type Constraint_id;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -114,13 +114,13 @@ public:
|
||||||
|
|
||||||
Vertex_list* vl_ptr() const {return second;}
|
Vertex_list* vl_ptr() const {return second;}
|
||||||
|
|
||||||
operator std::pair<Vertex_handle, Vertex_handle>()
|
operator std::pair<std::pair<Vertex_handle, Vertex_handle>,Vertex_list*>()
|
||||||
{
|
{
|
||||||
if (second!=NULL){
|
if (second!=NULL){
|
||||||
return std::make_pair(second->front().vertex(),
|
return std::make_pair(std::make_pair(second->front().vertex(),
|
||||||
second->back().vertex());
|
second->back().vertex()),second);
|
||||||
}
|
}
|
||||||
return std::make_pair(Vertex_handle(),Vertex_handle());
|
return std::make_pair(std::make_pair(Vertex_handle(),Vertex_handle()),second);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool operator == (const Constraint_id& other) const
|
bool operator == (const Constraint_id& other) const
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue