Added conditionnal inclusion of <CGAL/Filter/predicates_on_ftC2.h>.

This commit is contained in:
Sylvain Pion 1998-11-12 16:11:33 +00:00
parent 2d75f4a70f
commit c47e4572cb
1 changed files with 8 additions and 0 deletions

View File

@ -88,9 +88,17 @@ inline double CGAL_to_double (const CGAL_Filtering<CT,ET>& fil)
// All exact types should reasonnably have a built-in exact conversion
// from doubles ? If not, it will fail, and you have to provide it.
//
// It's bad to provide such a default, because it can be a inexact cast:
// ex: CGAL_Gmpz accepts it, but it's false !!!
template <class ET>
inline ET CGAL_to_exact_type (const double & d)
{ return ET(d); }
#ifdef CGAL_PREDICATES_ON_FTC2_H
#include <CGAL/Filter/predicates_on_ftC2.h>
#endif
#endif // CGAL_FILTER_H