|
Boost Users : |
Subject: Re: [Boost-users] Define a callback member function inside the object instance
From: Daniele Barzotti (daniele.barzotti_at_[hidden])
Date: 2009-08-28 06:36:53
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
OvermindDL1 wrote:
>
> If the callback is a real function pointer and not boost::function,
> you cannot. Bind creates a functor, which cannot be placed in a C
> style function pointer, you need a C++ style function pointer
> (std/boost::function).
Oh. You're right! I didn't thought!
> Your best bet would be to stick the instance in the userData and call
> back to your instance.
Yes, actually I do exactly this!
Thanks!
Daniele.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
iD8DBQFKl7NE/l+kMioSZwgRAhbkAKDI3OZg+unAeb06464oCHpdsGF0FQCgs6yL
XcRK9gQv42nFbK5j+UMJpfg=
=EXb2
-----END PGP SIGNATURE-----
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