From ea43a393c4c2536f1aa167e0a6f8b073faa038d8 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Wed, 29 Mar 2006 07:57:25 +0000 Subject: [PATCH] Changed Construct_point_2::operator()(Line) --- Cartesian_kernel/include/CGAL/Cartesian/function_objects.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Cartesian_kernel/include/CGAL/Cartesian/function_objects.h b/Cartesian_kernel/include/CGAL/Cartesian/function_objects.h index 059c53beaf3..546484f089e 100644 --- a/Cartesian_kernel/include/CGAL/Cartesian/function_objects.h +++ b/Cartesian_kernel/include/CGAL/Cartesian/function_objects.h @@ -2003,17 +2003,19 @@ namespace CartesianKernelFunctors { Point_2 operator()(const Line_2& l) const { + typename K::Construct_point_2 construct_point_2; typename K::FT x, y; line_get_pointC2(l.a(), l.b(), l.c(), 0, x, y); - return Rep(x,y); + return construct_point_2(x,y); } Point_2 operator()(const Line_2& l, int i) const { + typename K::Construct_point_2 construct_point_2; typename K::FT x, y; line_get_pointC2(l.a(), l.b(), l.c(), i, x, y); - return Rep(x,y); + return construct_point_2(x,y); } };