|
Boost Users : |
Subject: Re: [Boost-users] Iterators and subclasses
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-10-12 14:05:54
AMDG
Swerts, Benjamin wrote:
> I'm trying to create a base class that provides 2 iterators (begin/end).
> These will be used to iterate over data structures that will be provided
> by subclasses. These data structures are completely unrelated. Normally
> this can be solved using virtual functions but the problem is that
> iterators are normally returned by value so I cannot go that route.
>
Look at Adobe's any_iterator
http://stlab.adobe.com/classadobe_1_1any__iterator.html
In Christ,
Steven Watanabe
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net