mirror of https://github.com/CGAL/cgal
fix Intersect_d functor for intersection API v1
This commit is contained in:
parent
64b130ba06
commit
d18e42391b
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue