
12 Feb
2005
12 Feb
'05
6:43 a.m.
David Abrahams wrote:
Transform_iterator _is_ part of boost already, the difference is, that wave uses a slightly different version (for performance reasons the version contained in Wave returns the transformed value by reference - I don't know, whether this is commonly possible - in Wave it is used to flatten a parse tree). That's the reason, why it is named ref_transform_iterator.
The boost::transform_iterator also returns by reference, if you set it up right. No need for code duplication.
Even better, I'll look into it. The transform_iterator in Wave is perhaps an overleft from the old IA library, I haven't looked into this for 2 years or so... Regards Hartmut