$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-04-17 04:36:27
From: "Andrei Alexandrescu" <andrewalex_at_[hidden]>
> > Issue: binding an object to a member function pointer
>
> Given that you guys have beaten this to death, I guess all arguments
> have been said, so I'll have to look there.
The gist of it is that this:
function<void> f(&X::g, px);
is merely syntactic sugar for:
function<void> f = bind(&X::g, px);
which is much more general. The "short form" is very much necessary if you
don't have a bind() thing (frequently requested before boost::bind came into
play), but if you do, most people don't notice its absence.