Subject: Re: [boost] How to bind objects with reference handle
From: Frank Mori Hess (frank.hess_at_[hidden])
Date: 2009-03-31 10:08:08
-----BEGIN PGP SIGNED MESSAGE-----
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)
-----END PGP SIGNATURE-----
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk