Boost logo

Boost Users :

Subject: Re: [Boost-users] [lambda] extending lambda functions
From: Joel de Guzman (joel_at_[hidden])
Date: 2009-03-22 00:49:36

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.


Joel de Guzman

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at