fix Intersect_d functor for intersection API v1

This commit is contained in:
Sébastien Loriot 2013-09-25 18:08:54 +02:00
parent 64b130ba06
commit d18e42391b
1 changed files with 6 additions and 1 deletions

View File

@ -153,6 +153,11 @@ public:
// Solely to make the lazy kernel work
#if CGAL_INTERSECTION_VERSION < 2
typedef CGAL::Object result_type;
template <class T1, class T2>
result_type
operator()(const T1& t1, const T2& t2) const
{ return internal::intersection(t1, t2, R()); }
#else
template <typename>
struct result;
@ -212,12 +217,12 @@ public:
template <typename F>
struct result<F(Segment_d, Hyperplane_d)> : result<F(Hyperplane_d, Segment_d)>
{ };
#endif
template <class T1, class T2>
typename result<Intersect(T1,T2)>::type
operator()(const T1& t1, const T2& t2) const
{ return internal::intersection(t1, t2, R()); }
#endif
};
template<class R>