
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@tid.es> wrote:
________________________________________ De: boost-bounces@lists.boost.org [boost-bounces@lists.boost.org] En nombre de Simon Richter [Simon.Richter@hogyros.de] Enviado el: sábado, 19 de julio de 2008 2:34 Para: boost@lists.boost.org 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