compiler error with Phoenix and zip_iterator

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
==================
#include <vector>
#include <string>
#include <iostream>
#include <sstream>
using namespace std ;
#include

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
participants (2)
-
Joel de Guzman
-
Surya Kiran Gullapalli