Using Chainer with varying Functors

Help
2008-02-05
2013-04-08
  • I'd like to be able to chain together these Functors:

    Loki::Functor<void, LOKI_TYPELIST_1(int)> c1(pDog, &Dog::RollOver);
    Loki::Functor<void, LOKI_TYPELIST_1(std::string)> c2(pDog, &Dog::Listen);

    but when I try

    Loki::Functor<void, LOKI_TYPELIST_1(std::string)> cmd34(Loki::Chainer<foo, foo> (c1, c2));

    I can't make the compiler happy.  Is this possible?