range transformed -adaptor incompatible with lambda functions
19 Mar
2009
19 Mar
'09
3:38 p.m.
Hi, 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: for_each(myvec|boost::adaptors::transformed(double_int()), std::cout<<boost::lambda::_1<<' '); where double_int hand created function object with result_type declaration. Thanks sandeep
5664
Age (days ago)
5664
Last active (days ago)
0 comments
1 participants
participants (1)
-
Sandeep Gupta