Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] CAGL::To_double

Subject: CGAL users discussion list

List archive

[cgal-discuss] CAGL::To_double


Chronological Thread 
  • 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

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;
}

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  



Archive powered by MHonArc 2.6.18.

Top of Page