Boost logo

Boost Users :

Subject: Re: [Boost-users] [lambda & range] bind for transformed - how to do it.
From: Daniel James (dnljms_at_[hidden])
Date: 2011-11-29 08:30:28


On 29 November 2011 13:09, Robert Jones <robertgbjones_at_[hidden]> wrote:
> In this code (fabricated) sequence, ages_by_bind compiles, but
> ages_by_lambda
> does not.
>
> I believe this is because the lambda version does not publish result_type to
> its
> resultant functors, since the increased generality of lambda makes this
> difficult
> or impossible to do.
>
> Is there any way I can get round this, as it currently makes the
> lambda/transformed
> combination completely unusable AFAICS.

Have you tried using Phoenix? It has better support for result_type.


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