diff --git a/Kernel_d/include/CGAL/Kernel_d/function_objects.h b/Kernel_d/include/CGAL/Kernel_d/function_objects.h index f57a6ae580c..f9c8044ba59 100644 --- a/Kernel_d/include/CGAL/Kernel_d/function_objects.h +++ b/Kernel_d/include/CGAL/Kernel_d/function_objects.h @@ -153,6 +153,11 @@ public: // Solely to make the lazy kernel work #if CGAL_INTERSECTION_VERSION < 2 typedef CGAL::Object result_type; + + template + result_type + operator()(const T1& t1, const T2& t2) const + { return internal::intersection(t1, t2, R()); } #else template struct result; @@ -212,12 +217,12 @@ public: template struct result : result { }; -#endif template typename result::type operator()(const T1& t1, const T2& t2) const { return internal::intersection(t1, t2, R()); } +#endif }; template