Subject: Re: [boost] [function] Multi-signature function?
From: TONGARI J (tongari95_at_[hidden])
Date: 2014-03-12 13:06:04
2014-03-12 1:19 GMT+08:00 TONGARI J <tongari95_at_[hidden]>:
> Hi Steven,
> 2014-03-12 0:45 GMT+08:00 Steven Watanabe <watanabesj_at_[hidden]>:
>> On 03/11/2014 09:22 AM, TONGARI J wrote:
>> > Hi folks,
>> > I know it'd be better to say "overload", but I choose the word carefully
>> > because I'm aware of Boost.OverloadedFunction, which is not what I'm
>> > talking here (it's complementary, though).
>> > What I want is to have std/boost::function support multi-signature
>> > instead of relying on some external wrapper which is less efficient. For
>> > example:
> Thanks for the example, seems fairly easy with Boost.TypeErasure, then I'd
> like to compare the performance :)
For anyone interested, I wrote a benchmark:
The usage is degenerated to single signature to compare with other function
You could see the sample result on the page.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk