|
Boost : |
From: Karl Nelson (kenelson_at_[hidden])
Date: 2001-12-27 11:30:03
> From: "Karl Nelson" <kenelson_at_[hidden]>
> > with functor, but once function and bind (horrible, horrible name!!)
>
> You seem to use "bind" yourself. ;-)
Yes. I used it for the same function as STL does.
Ie.
STL:
bind1st(less<int>(),2)
SigC:
void foo(int);
Slot0<void> sl=bind(&foo,1);
boost::bind:
bind(&X::f0,&x)();
bind in the boost sense is using the term bind to mean something
other than arguments. It is meaning combine an object and method
to a functor. True the object is a hidden object to a method, but
this still seems odd.
--Karl
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk