6 Oct
2008
6 Oct
'08
3:38 p.m.
AMDG Manuel Jung wrote:
Hey,
I have problems using mpl::for_each. Well, it works for simple functors, but i need a functor with some context. I'm trying to build a functor through boost::bind. mpl::_1 should be a type from the consensus sequence if evaluated, shouldn't it? You can see a small (hopefully not too small) example below.
mpl::_1 is not expanded by Boost.Bind. You need something like
template<class T>
struct wrap {};
struct connect_f {
typedef void result_type;
template