Subject: Re: [boost] range transformed -adaptor incompatible with lambda functions
From: Sandeep Gupta (gupta.sandeep_at_[hidden])
Date: 2009-03-19 12:15:25
Thanks for letting me know. I am enjoying using your library.
Thanks for making it available and good luck with reviews.
On Thu, Mar 19, 2009 at 9:00 AM, Neil Groves <neil_at_[hidden]> wrote:
> Dear Sandeep,
> On Thu, Mar 19, 2009 at 3:38 PM, Sandeep Gupta <gupta.sandeep_at_[hidden]>wrote:
>> I would be nice if range-transformed worked with lambda functions.
>> Is this an intended behaviour. To illustrate
>> the following two statements fail
>> for_each(myvec|boost::adaptors::transformed(arg1+mask), std::cout<<arg1<<'
>> for_each(myvec|boost::adaptors::transformed(boost::lambda::_1 +
>> mask), std::cout<<boost::lambda::_1<<' ');
>> But this is fine:
>> std::cout<<boost::lambda::_1<<' ');
>> where double_int hand created function object with result_type declaration.
> I am very happy to extend the code to support lambda functions in the
> adaptors. I will announce when I have made the necessary modifications.
> I have quite a list of good suggestions for changes to accomodate as a
> result of the recent review. So this may take a couple of weeks.
> Thank you for your patience,
> Neil Groves
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk