Subject: CGAL users discussion list
List archive
- From: "Laurent Rineau (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] "cannot convert parameter from" error in CGAL
- Date: Wed, 17 Mar 2010 13:43:13 +0100
- Organization: GeometryFactory
On Wednesday 17 March 2010 12:38:26 Remi wrote:
> >g:\projects\ts\cgal\cgal\arrangement_2\arrangement_on_surface_2_impl.h(322
> >9) : error C2664:
> >'CGAL::Arrangement_on_surface_2<GeomTraits_,TopTraits_>::_notify_before_m
> >odify_edge' : cannot convert parameter 1 from
> >'CGAL::I_Filtered_iterator<Iterator_,Filter_,Value_,Diff_,Category_>
> >(__cdecl *)(void)' to
> >'CGAL::I_Filtered_iterator<Iterator_,Filter_,Value_,Diff_,Category_>'
If we note It the iterator type, your compiler is saying:
Cannot convert parameter 1 from "It (*)(void)" to "It".
Having a look at the incriminated line in
<CGAL\Arrangement_2\Arrangement_on_surface_2_impl.h>, i guess that you have a
macro named "he" somewhere in your project (in a header included before that
CGAL header). Rename it, or #undef it as soon as it is no longer needed.
> Of course the error gets longer than this (ridiculously longer) but at
> some place it points to the instantiation of
> CGAL::Polygon_set_2< K, std::list<K::Point2> > in my code.
> where:
> typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
>
> The compiler is Visual C++ 2008.
> What's even more mysterious - I can instantiate CGAL::Polygon_set_2
> with the same template parameters in another project without any
> errors.
That other project probably does not define that macro polluting the naming
space.
--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory http://www.geometryfactory.com/
Release Manager of the CGAL Project http://www.cgal.org/
- [cgal-discuss] "cannot convert parameter from" error in CGAL, Remi, 03/17/2010
- Re: [cgal-discuss] "cannot convert parameter from" error in CGAL, Laurent Rineau (GeometryFactory), 03/17/2010
- Re: [cgal-discuss] "cannot convert parameter from" error in CGAL, Remi, 03/17/2010
- Re: [cgal-discuss] "cannot convert parameter from" error in CGAL, Laurent Rineau (GeometryFactory), 03/17/2010
Archive powered by MHonArc 2.6.16.