6 Feb
2009
6 Feb
'09
3:47 a.m.
on Thu Feb 05 2009, Michael Fawcett
Thanks, as always, Steven.
While clever, Boost.Lamba seems like overkill for this extremely simple task. Is it your experience that it would generate code as efficient as what I originally posted?
Should be easily as efficient.
Do you feel that such functionality doesn't belong in Boost.Iterator?
I definitely think it doesn't. Boost.Iterator is about constructing iterators. You're constructing a function. Boost.Lambda or Bind or Pheonix are the right tools for that job.
I think it nicely complements function_output_iterator.
Then maybe function_output_iterator ought to be moved into the lambda lib ;-) -- Dave Abrahams BoostPro Computing http://www.boostpro.com