19 Oct
2007
19 Oct
'07
6:16 p.m.
On Behalf Of Chris Weed
Hi, I would like to bind to the boost::get<N> function for use by transform iterator.
I don't know the answer to you question, but with overloaded functions or functions that have too many template arguments I sometimes forego binders and write a small struct to invoke them. It might be something like this: template<int Index, class Tuple> struct calls_get_t : std::unary_function<..> { result_type operator()(argument_type arg) { return get<Index>(arg); } }; Maybe boost-pros know a better way. Also I am beginning to look at Fusion which may have some extra functions we can use with tuples. -- John