Re: [Boost-users] Using bind to call a member function

14 Mar
2006
14 Mar
'06
10:01 a.m.
Also thanks, I was wondering how to do exactly the same thing the other day. James
-----Original Message----- From: Rob Caldecott [mailto:robert.caldecott@gmail.com] Sent: 14 March 2006 09:52 To: boost-users@lists.boost.org Subject: Re: [Boost-users] Using bind to call a member function
Thankyou Stuart - it works like a charm.
You certainly can - add 'this' as the first bound
parameter, like so:
for_each(v.begin(), v.end(), bind(&CTest::SomeFunc, this, _1));
HTH Stuart Dootson
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
6921
Age (days ago)
6921
Last active (days ago)
0 comments
1 participants
participants (1)
-
James Hughes