Boost logo

Boost Users :

Subject: Re: [Boost-users] problems on iterating over a fusion sequence
From: Cromwell Enage (sponage_at_[hidden])
Date: 2011-07-01 15:03:53


--- On Fri, 7/1/11, Olaf Peter wrote:
> Hi,

Hi, Olaf.

> In the example below, the loop runs forever.
> What is the reason for this?
> I'm using trunk 72818

The fusion::next() function returns the iterator to the next element. It does not change the input iterator in place.

You'll need to wrap your looped output stream statement in a custom function object, then replace your loop with a fusion::for_each() statement that uses your function object.

HTH,
Cromwell D. Enage


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