Boost logo

Boost Users :

Subject: Re: [Boost-users] How to forward to a list of boost::function?
From: Rutger ter Borg (rutger_at_[hidden])
Date: 2010-03-16 03:27:25


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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net