Boost logo

Boost :

Subject: Re: [boost] [local_function] any interest in a LocalFunction library?
From: Jeffrey Lee Hellrung, Jr. (jhellrung_at_[hidden])
Date: 2010-08-22 21:27:06


On 8/22/2010 6:01 PM, OvermindDL1 wrote:
> On Sun, Aug 22, 2010 at 11:18 AM, Mathieu -<ptr.jetable_at_[hidden]> wrote:
>> I might be totally wrong here but I don't see how it's different from lambdas...
>
> What can it do differently from boost::phoenix? I am guessing you
> just create and instance a struct right there, but boost::phoenix
> would be more succinct.

Except Boost.Phoenix isn't as expressive as "real" C++, is it? E.g.,
local variables are somewhat clumsy (opinion) in the current incarnation
of Boost.Phoenix.

Also, it seems reasonable to implement BOOST_LOCAL_FUNCTION in terms of
lambdas if they exist, but perhaps one would want to use local functions
on non-lambda-enabled compilers.

- Jeff


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk