
16 Sep
2006
16 Sep
'06
1:45 p.m.
Alexander Shyrokov
Is it possible to convert boost::bind(&TMap::value_type::second,_1) to a function object or a typedef name?
Yes: boost::function< void (TMap::value_type) > proc = boost::bind(f, boost::bind(&TMap::value_type::second, _1)); would do it if the signatures did match (f is taking char*, not char). Also, some boost:: q are redundant (ADL): boost::function< void (TMap::value_type) > proc = bind(f, bind(&TMap::value_type::second, _1)); Regards, Jens