
16 Mar
2010
16 Mar
'10
7:27 a.m.
OvermindDL1 wrote:
Signals does it by specializing for every possible arity.
Although you (nor signals) needed to do it that way. Using Boost.Fusion you can have it be all automatic, probably even simplify it more if you need better forwarding with Boost.Functional.Forwarding.
What about specializing function_types::components / parameter types for boost::function (it has member typedefs argN_type, arity), and with that build a perfect forwarding adaptor? Works for me... Cheers, Rutger