Boost logo

Boost :

Subject: Re: [boost] [proto][can_be_called]
From: Eric Niebler (eric_at_[hidden])
Date: 2010-05-07 13:40:24

On 5/7/2010 2:02 AM, Kim Kuen Tang wrote:
> Eric Niebler schrieb:
>> See if the code attached to the following ticket meets your needs:
> I ran into the same problem some months ago and did also my own
> implementation.
> However the implementation by eric_niebler seems to be more generic and
> it works IMHO also for boost::function and boost::phoenix.
> (Verified by some simple test cases)

Good to know.

> Are test cases and documentation the only things that are needed such
> that is_callable_with_args can be included in boost?

Test cases are attached to the ticket. Documentation is not. What is
really needed is someone to light a fire under Tobias Schwinger. He's
the maintainer of the function types library. Tobias?

> Btw what does calling convention on function types mean here ?

It means that on some compilers, void (__stdcall *)() is a different
type than void (__cdecl *)(). This utility should accommodate all
calling conventions.

Eric Niebler
BoostPro Computing

Boost list run by bdawes at, gregod at, cpdaniel at, john at