Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Re: Applying a functor to CGAL iterator ranges.

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Re: Applying a functor to CGAL iterator ranges.


Chronological Thread 
  • 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 wrote
Depending on what you're iterating over it sounds like you could kludge
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
Yea, the nicest one-off solution is to use a boost::iterator_adaptor (I
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.
Hm. 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?



Archive powered by MHonArc 2.6.18.

Top of Page