Subject: CGAL users discussion list
List archive
- From: Cody Rose <>
- To:
- Subject: Re: [cgal-discuss] Re: Applying a functor to CGAL iterator ranges.
- Date: Tue, 05 Feb 2013 13:49:48 -0800
On 2/5/2013 1:34 PM, RossH wrote:
Cody M Rose wroteHm. What exactly are your library boundaries? To put it in another way, where are you willing to put the complexity of the static dispatch - in the functor, the higher-order function, or the calling code?
Depending on what you're iterating over it sounds like you could kludgeYea, the nicest one-off solution is to use a boost::iterator_adaptor (I
this by creating a sequence filled with pointers to your actual
iterators. It's certainly not elegant, though.
Cody
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss
actually posted the code for this exact
solution on my blog:
http://www.rosshemsley.co.uk/2012/08/boost-iterator_adaptors-and-modifying-the-cgal-finite_vertices_iterator/).
But here I am writing the functions to use as a library so I don't want the
user to see the inconsistency.
- [cgal-discuss] Applying a functor to CGAL iterator ranges., Ross Hemsley, 02/05/2013
- Re: [cgal-discuss] Applying a functor to CGAL iterator ranges., Cody Rose, 02/05/2013
- [cgal-discuss] Re: Applying a functor to CGAL iterator ranges., RossH, 02/05/2013
- Re: [cgal-discuss] Re: Applying a functor to CGAL iterator ranges., Cody Rose, 02/05/2013
- [cgal-discuss] Re: Applying a functor to CGAL iterator ranges., RossH, 02/06/2013
- Re: [cgal-discuss] Re: Applying a functor to CGAL iterator ranges., Cody Rose, 02/05/2013
- [cgal-discuss] Re: Applying a functor to CGAL iterator ranges., RossH, 02/05/2013
- Re: [cgal-discuss] Applying a functor to CGAL iterator ranges., Philipp Moeller, 02/05/2013
- [cgal-discuss] Re: Applying a functor to CGAL iterator ranges., RossH, 02/06/2013
- Re: [cgal-discuss] Applying a functor to CGAL iterator ranges., Cody Rose, 02/05/2013
Archive powered by MHonArc 2.6.18.