Boost logo

Boost :

Subject: Re: [boost] painless currying
From: John Wiegley (jwiegley_at_[hidden])
Date: 2011-08-23 20:52:38


>>>>> John Bytheway <jbytheway+boost_at_[hidden]> writes:

> On 23/08/11 20:38, Eric Niebler wrote:
>> curryable<std::plus<int> > p;
>> auto curried = p(1);
>> int i = curried(2);
>> assert(i == 3);
>> Is there any interest in such a thing?

I'd be very interested, Eric!

-- 
  John Wiegley
  BoostPro Computing, Inc.
  http://www.boostpro.com

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