Fix making P3T3 an abstract class

This commit is contained in:
Mael Rouxel-Labbé 2022-11-24 12:59:17 +01:00
parent b10b84fb7f
commit 6021d5a9f1
1 changed files with 7 additions and 1 deletions

View File

@ -693,7 +693,13 @@ public:
return point(periodic_point(v), cp);
}
virtual Point point(Vertex_handle v) const = 0;
virtual Point point(Vertex_handle v) const
{
// This is a purely virtual function, but it cannot be made "= 0;" otherwise
// one cannot use P3T3 by itself (which never happens except in tests...)
CGAL_assertion(false);
return Point();
};
template <class ConstructPoint>
Point point(Cell_handle c, int idx, ConstructPoint cp) const