Boost logo

Boost Users :

Subject: Re: [Boost-users] [fusion] transform & iterators
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-03-11 12:39:10


AMDG

David Greene wrote:
> On Thursday 11 March 2010 01:50:14 Joel de Guzman wrote:
>
>> There's no way I know that would allow that. First, fusion iterators
>> have different types for each iterator position, unlike STL where
>> begin and end and everything in between have a single iterator type.
>> IOTW, fusion iterators are polymorphic.
>>
>
> Ugh. That makes things difficult then. There's no simple way to define
> a function that just takes a pair of iterators and does something with
> them. Surely others have tried to do things like this before. What's
> the typical solution?
>

Use a recursive function template or use one of fusion's algorithms.

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