
11 Mar
2010
11 Mar
'10
5:39 p.m.
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