How to bind objects with reference handle

Hello All, I am using the latest version of boost. I am trying to bind a particular member function to a signal. I am trying to bind the signal to a pointer, which is a reference Handle(WeakRefHandle,RefHandle). I am getting an error for this. How do I fix it. I am trying to port a game, So switching to boost::shared_ptr is not an option, as it will force lot of changes in the game code. Cheers, Altaf -- An eye for an eye only ends up making the whole world blind.

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday 31 March 2009, Altaf Navalur wrote:
Hello All, I am using the latest version of boost. I am trying to bind a particular member function to a signal. I am trying to bind the signal to a pointer, which is a reference Handle(WeakRefHandle,RefHandle). I am getting an error for this. How do I fix it. I am trying to port a game, So switching to boost::shared_ptr is not an option, as it will force lot of changes in the game code.
You can define a get_pointer function for your Handle class. That will let you use it as the second argument to bind when binding a member function. See the documentation for bind and mem_fn. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAknSI8gACgkQ5vihyNWuA4U5JQCcDsNVj4B/UTU94DieWEWIlEoo F1QAn2lyZ509cT9tinPTDvgtAs/kHCec =JH1C -----END PGP SIGNATURE-----
participants (2)
-
Altaf Navalur
-
Frank Mori Hess