Boost logo

Boost :

From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-04-28 12:48:08


AMDG

Marco Costalba wrote:
> On Sun, Apr 27, 2008 at 4:22 PM, Steven Watanabe <watanabesj_at_[hidden]> wrote:
>
>> Further, it cannot handle implicit conversions of the argument types
>> and return types.
>>
>>
>
> What seems is needed is a template is_assignable<boost_fun, fun> that
> evaluates to true iff an instance of type fun is assignable to a
> boost::function object of type boost_fun
>
> Of course it should work also if fun is a function signature.
>
> You have found two shortcomings of struct is_compatible, any solution ?
>

There's a page in the proto documentation that describes a solution.

In Christ,
Steven Watanabe


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk