mirror of https://github.com/CGAL/cgal
Fix assertion with explicit boolean conversion
This commit is contained in:
parent
a43b994425
commit
94155bd89e
|
|
@ -722,7 +722,7 @@ public:
|
||||||
|
|
||||||
// Intersect the two supporting lines.
|
// Intersect the two supporting lines.
|
||||||
auto res = kernel.intersect_2_object()(cv1.line(), cv2.line());
|
auto res = kernel.intersect_2_object()(cv1.line(), cv2.line());
|
||||||
CGAL_assertion(res);
|
CGAL_assertion(bool(res));
|
||||||
|
|
||||||
// Check if we have a single intersection point.
|
// Check if we have a single intersection point.
|
||||||
const Point_2* ip = boost::get<Point_2>(&*res);
|
const Point_2* ip = boost::get<Point_2>(&*res);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue