Boost logo

Boost Users :

Subject: Re: [Boost-users] compiler error with Phoenix and zip_iterator
From: Joel de Guzman (joel_at_[hidden])
Date: 2010-04-12 11:08:23


On 4/12/2010 7:03 PM, Surya Kiran Gullapalli wrote:
> The following piece of code works fine with MSVC 9.0 but fails with
> Gcc-4.4.2. Compiler throws lot of error messages due to the for_each
> call. I'm unable to figure out the exact problem
> ==================

[snip]
>
> I'm using Boost-1.42.0
>
> What is wrong with for_each call ?

zip_iterator is not returning a real reference on dereference (*i).
Unfortunately, this is not compatible with phoenix. Currently, phoenix
takes its parameters by non const reference.

Regards,

-- 
Joel de Guzman
http://www.boostpro.com
http://spirit.sf.net
http://www.facebook.com/djowel
Meet me at BoostCon
http://www.boostcon.com/home
http://www.facebook.com/boostcon

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