Boost logo

Boost :

Subject: Re: [boost] painless currying
From: Thomas Heller (thom.heller_at_[hidden])
Date: 2011-08-24 12:44:41


On Wed, Aug 24, 2011 at 6:18 PM, Mathias Gaunard
<mathias.gaunard_at_[hidden]> wrote:
> On 24/08/2011 10:41, Thomas Heller wrote:
>
>> FWIW, the feature described is currently perfectly doable with phoenix
>> right
>> now. With a combination of lambda, bind and placeholders. Which is,
>> admittingly, not very elegant to do. A lot of boilerplate for such a
>> seemingly
>> simple task.
>
> bind requires knowing the arity of the function, unless there is a trick to
> avoid that?

Not that i know of. calling bind(f()); assumes a nullary functor.


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