Boost logo

Boost Users :

Subject: Re: [Boost-users] Still not there yet...
From: John M. Dlugosz (mpbecey7gu_at_[hidden])
Date: 2011-07-28 11:01:13


On 7/28/2011 6:28 AM, Pace, Antony [Harman Pro Group UK] wrote:
> Is your second parameter the address of a class or the class itself?
> My usual problem with bind is forgetting the 'this' as the second parameter for a member function.
> Ant

 From the documentation, passing the class instance itself will make a copy held inside
the function object. Passing the address will store a pointer inside the function object,
so it will refer to my instance (which must continue to exist as long as that function
object).


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net