Subject: CGAL users discussion list
List archive
- From: "Yuetong Luo" <>
- To: cgal-discuss <>
- Subject: [cgal-discuss] CAGL::To_double
- Date: Wed, 4 Feb 2015 09:07:24 +0800
Dear all,
I am trying to to use "CGAL::To_double()" , but I am suffering from compile error. My compiler is MicroSoft Visual studio 2010
I am trying to to use "CGAL::To_double()" , but I am suffering from compile error. My compiler is MicroSoft Visual studio 2010
The code:
#include <CGAL/Exact_predicates_exact_constructions_kernel.h>
struct Kernel : public CGAL::Exact_predicates_exact_constructions_kernel {};
typedef Kernel::Point_2 Point_2;
int main ()
{
Point_2 point(3,5);
CGAL::To_double(point.x());
return 0;
}
struct Kernel : public CGAL::Exact_predicates_exact_constructions_kernel {};
typedef Kernel::Point_2 Point_2;
int main ()
{
Point_2 point(3,5);
CGAL::To_double(point.x());
return 0;
}
complile error:
Error C2955: Use of Class template reuires argument list
error C2440: '<function-style-cast>' : cannot convert from 'CGAL::Lazy_exact_nt<ET_>' to 'CGAL::To_double'
Could anyone tell me how to modify the code to let it pass the compling and building?
Thanks
- [cgal-discuss] optimal_convex_partition_2(), tfern90, 02/02/2015
- Re: [cgal-discuss] optimal_convex_partition_2(), Sebastien Loriot (GeometryFactory), 02/03/2015
- Re: [cgal-discuss] optimal_convex_partition_2(), tfern90, 02/03/2015
- Re: [cgal-discuss] optimal_convex_partition_2(), Sebastien Loriot (GeometryFactory), 02/03/2015
- Re: [cgal-discuss] optimal_convex_partition_2(), tfern90, 02/03/2015
- Re: [cgal-discuss] optimal_convex_partition_2(), Sebastien Loriot (GeometryFactory), 02/13/2015
- Re: [cgal-discuss] optimal_convex_partition_2(), tfern90, 02/03/2015
- Re: [cgal-discuss] optimal_convex_partition_2(), Sebastien Loriot (GeometryFactory), 02/03/2015
- Re: [cgal-discuss] optimal_convex_partition_2(), tfern90, 02/03/2015
- [cgal-discuss] CAGL::To_double, Yuetong Luo, 02/04/2015
- Re: [cgal-discuss] CAGL::To_double, Sebastien Loriot (GeometryFactory), 02/04/2015
- Re: [cgal-discuss] optimal_convex_partition_2(), Sebastien Loriot (GeometryFactory), 02/03/2015
Archive powered by MHonArc 2.6.18.