$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] [boost::bind] How does it works for overloaded member functions in this example?
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-10-01 17:42:04
AMDG
On 10/1/2010 5:58 AM, Alexander Fokin wrote:
> I believe the signature of bind in boost is a bit more complex than in
> your example.
>
> It may go like this:
> template<
> class FuncRet,
> class FuncParam0,
> class Param0>
> <unspecified-type>
> bind(
> FuncRet (*pf)(FuncParam0),
> Param0 param0
> ) { ... }
>
> Since the full signature of the function pointer is provided, the
> compiler shouldn't have any problems disambiguating.
It can only disambiguate by function arity.
If you add a second 1 argument overload,
it won't work.
In Christ,
Steven Watanabe