|
Boost : |
From: Iggy Veresov (ig_at_[hidden])
Date: 2005-01-23 16:37:32
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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk