
28 Aug
2009
28 Aug
'09
10:36 a.m.
-----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-----