Subject: CGAL users discussion list
List archive
- From: Remi <>
- To:
- Subject: [cgal-discuss] compile error on calling optimal_convex_partition_2(...)
- Date: Thu, 21 Jan 2010 08:28:04 +0100
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=SYvBVTaOYWvqfNRMxQ7gPqDZ8GAdgjmMKAod3fl+o36p374qN5nuUzmA+dTfGcth3D eB2kXMAwRsNWFXlF6afWZOdP4Cyvxv5dun2dOHmNrorrXsv3uZiA8AYMAgJWAaR2KD5z PPxE1p2zpr2TeNKfpMTwBWbM63ThS9J3u8Kk8=
I have code like this:
typedef CGAL::Exact_predicates_inexact_constructions_kernel CGAL_K;
std::list<CGAL_K::Point_2> polygon_vertices;
std::list< CGAL::Polygon_2<CGAL_K> > convex_polygons;
optimal_convex_partition_2(polygon_vertices.begin(),
polygon_vertices.end(), std::back_inserter(convex_polygons));
The last statement produces the following compile error in Visual 2008:
1>g:\projects\ts\cgal\cgal\polygon_2\polygon_2_algorithms_impl.h(436)
: error C2666: 'CGAL::SF_Orientation_2<K_base>::operator ()' : 2
overloads have similar conversions
1> with
1> [
1>
K_base=CGAL::Filtered_kernel_base<CGAL::Type_equality_wrapper<CGAL::Cartesian_base_no_ref_count<double,CGAL::Filtered_kernel<CGAL::Simple_cartesian<double>>>,CGAL::Filtered_kernel<CGAL::Simple_cartesian<double>>>>
1> ]
1> g:\projects\ts\cgal\cgal\static_filters\orientation_2.h(61):
could be 'CGAL::Orientation CGAL::SF_Orientation_2<K_base>::operator
()(const CGAL::Point_2<R_> &,const CGAL::Point_2<R_> &,const
CGAL::Point_2<R_> &) const'
1> with
1> [
1>
K_base=CGAL::Filtered_kernel_base<CGAL::Type_equality_wrapper<CGAL::Cartesian_base_no_ref_count<double,CGAL::Filtered_kernel<CGAL::Simple_cartesian<double>>>,CGAL::Filtered_kernel<CGAL::Simple_cartesian<double>>>>,
1> R_=CGAL::Filtered_kernel<CGAL::Simple_cartesian<double>>
1> ]
1> unable to recover from previous error(s); stopping compilation
Any idea how to fix that, without having to understand the internals
of the library?
- [cgal-discuss] compile error on calling optimal_convex_partition_2(...), Remi, 01/21/2010
Archive powered by MHonArc 2.6.16.