23 Feb
2010
23 Feb
'10
7:51 a.m.
Manfred Doudar wrote:
Question is, what goes in at XXX above?
I was thinking something along the lines of:
boost::mpl::bind<boost::mpl::_1>
..but well, that doesn't work.
All help appreciated.
If you're in the position to use tag dispatching, one idea would be to update Func to struct Func { typedef void result_type; template <typename U, typename T> result_type operator()(U& u, T ) const {} }; and the call to boost::mpl::for_each<vec>( boost::bind( boost::ref(f), instance, _1 ) ); which compiles on my system. Cheers, Rutger