$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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