|
Boost Users : |
Subject: Re: [Boost-users] [Phoenix] : Using phoenix with zip_iterator
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-03-16 00:03:36
AMDG
Manjunath Kudlur wrote:
> I have the following program where I make_zip_iterator on 2
> vector<int>::iterator's and am trying to pass a Phoenix expression to
> std::for_each on the iterator. I wrote a lazy version of tuple.get<N>
> for that purpose. I get a compile error because the phoenix functor
> only accepts references, whereas the tuple element seems to get passed
> by value. What am I doing wrong?
>
Your code works for me. What version of boost and what compiler
are you using?
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