
6 Apr
2011
6 Apr
'11
11:36 p.m.
I get errors too with 1.46.0. It looks like it's because transform_iterator doesn't use result_of. IIRC, this was fixed /very/ recently.
Phoenix v2 is tricky to use with transform due to result_of -- for one, there was the bug Steven mentioned with transform_iterator. For two, Phoenix v2's return type deduction mechanism is different than that used by result_of. Phoenix v3 uses result_of and should then be interoperable with boost::adaptors::transformed. For the time being it may be better to use boost::bind in this case.
Thanks for the clarifications. I think I'll just wait for 1.47 to hit and reevaluate using this in production code. Keep up the great work guys, boost is a pretty great set of libraries.