
Hi,
I am trying to use phoenix::for_each to print each element of
iterator range. Would appreciate if any clarification as to why
statements 1 and 2 are giving compile errors.
Thanks
sandeep
//-------------code snippet
int x;
counting_iterator<int> first(0), last(10);
iterator_range

Sandeep Gupta wrote:
Hi, I am trying to use phoenix::for_each to print each element of iterator range. Would appreciate if any clarification as to why statements 1 and 2 are giving compile errors.
Thanks sandeep
//-------------code snippet
int x; counting_iterator<int> first(0), last(10); iterator_range
ir(first, last); phoenix::for_each(ir, std::cout<
See Scope (in particular, see scope.lambda and the for_each example): http://tinyurl.com/acc6uz Regards, -- Joel de Guzman http://www.boostpro.com http://spirit.sf.net
participants (2)
-
Joel de Guzman
-
Sandeep Gupta