
16 Mar
2010
16 Mar
'10
4:03 a.m.
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