
22 Mar
2009
22 Mar
'09
4:49 a.m.
alfC wrote:
the question is what do I have to do to be able to use the following syntax instead _1 + llnorm(_2)
where llnorm is something I have to define (globally) somewhere else. The question is, how do I have to define llnorm to have the desired effect?
Lambda does not have such a facility. You can use Phoenix instead. Phoenix (lazy) functions allow you to do that. Phoenix is intended to supercede Lambda. Phoenix has been reviewed and is conditionally accepted into Boost after another mini-review. Regards, -- Joel de Guzman http://www.boostpro.com http://spirit.sf.net