mirror of https://github.com/CGAL/cgal
Fixed the Curve_id to be of type size_t.
This commit is contained in:
parent
1353f56b53
commit
001c8160ee
|
|
@ -294,9 +294,11 @@ public:
|
|||
/*!
|
||||
* Get a unique polynomial ID (based on the actual representation pointer).
|
||||
*/
|
||||
unsigned int id () const
|
||||
size_t id () const
|
||||
{
|
||||
return (reinterpret_cast<unsigned int> (this->ptr()));
|
||||
const void *p = reinterpret_cast<const void*> (this->ptr());
|
||||
|
||||
return (reinterpret_cast<size_t> (p));
|
||||
}
|
||||
|
||||
/*!
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ public:
|
|||
Nt_traits> Self;
|
||||
|
||||
// Type definition for the intersection-point mapping.
|
||||
typedef unsigned int Curve_id;
|
||||
typedef size_t Curve_id;
|
||||
typedef std::pair<Curve_id, Curve_id> Curve_pair;
|
||||
typedef std::pair<Point_2, unsigned int> Intersection_point_2;
|
||||
typedef std::list<Intersection_point_2> Intersection_list;
|
||||
|
|
|
|||
Loading…
Reference in New Issue