Boost Users :
Subject: Re: [Boost-users] [lambda] extending lambda functions
From: Joel de Guzman (joel_at_[hidden])
Date: 2009-03-22 00:49:36
> 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
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.
-- Joel de Guzman http://www.boostpro.com http://spirit.sf.net
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net