|
Boost : |
From: Barco You (barcojie_at_[hidden])
Date: 2008-07-21 03:27:40
In Adobe example
the function: void reverse_and_print(any_iterator_to_int first,
any_iterator_to_int last) is not virtual funciton!
On Sat, Jul 19, 2008 at 4:53 PM, JOAQUIN M. LOPEZ MUÑOZ <joaquin_at_[hidden]>
wrote:
> ________________________________________
> De: boost-bounces_at_[hidden] [boost-bounces_at_[hidden]] En
> nombre de Simon Richter [Simon.Richter_at_[hidden]]
> Enviado el: sábado, 19 de julio de 2008 2:34
> Para: boost_at_[hidden]
> Asunto: [boost] passing ranges or output iterators to virtual functions
> >
> > Hi,
> >
> > I've written two small class templates that basically "work for me" in
> > the current state, but are not as generic as I'd like.
> >
> > The task at hand: pass a list of objects through a function call with
> > fixed signature (such as a virtual function) without exposing the actual
> > container type used.
> >
> > I'd like to get a bit of feedback on whether these might be a worthwhile
> > addition to Boost (after some cleanup and implementation of features
> > missing so far).
>
> Hi Simon, I think you should take a look at adobe::any_iterator from the
> Adobe Source Libraries:
>
> http://stlab.adobe.com/classadobe_1_1any__iterator.html
>
> This class addresses the scenario you're interested in in a completely
> general fashion (all iterator categories supported, etc.)
>
> Joaquín M López Muñoz
> Telefónica, Investigación y Desarrollo
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
>
-- ------------------------------- Enjoy life! Barco You
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk