
28 Apr
2008
28 Apr
'08
4:48 p.m.
AMDG Marco Costalba wrote:
On Sun, Apr 27, 2008 at 4:22 PM, Steven Watanabe <watanabesj@gmail.com> 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