
23 Jan
2005
23 Jan
'05
9:37 p.m.
Can anybody enlighten me, how to extract a tuple element in lambda function? A straight-forward approach of binding corresponding get<> member-function doesn't comple.. using namespace boost::lambda; boost::tuple<int,int> t(1,2); std::cout << bind(&boost::tuple<int,int>::get<0>, _1)(t); Thanks in advance! /Ig