
16 Mar
2010
16 Mar
'10
3:59 a.m.
AMDG John Ky wrote:
I have a class:
template<typename function_type> class function_vector { private: std::vector<boost::function<function_type> > functions; };
I want to write an operator() for this template class that takes all the arguments necessary to invoke a function of type function_type. When called, it should call each function in the functions field.
How do I do this?
I think Boost.Signals2 does something like this, but I can't work out how it is done.
Signals does it by specializing for every possible arity. In Christ, Steven Watanabe